我应该使用哪一个,有什么区别:
System.Windows.MessageBox
System.Windows.Forms.MessageBox
同样的问题关于System.Windows.Forms.SaveFileDialog和Microsoft.Win32.SaveFileDialog 。
我需要的只是显示一个消息框并保存文件对话框(也适用于Windows XP)。
适当的重新标记是赞赏。
在此先感谢,嗯。
Which one should I use and what are the differences:
System.Windows.MessageBox
System.Windows.Forms.MessageBox
The same question about System.Windows.Forms.SaveFileDialog and Microsoft.Win32.SaveFileDialog.
All I need is to show a message box and save file dialog (working on Windows XP as well).
Proper re-tagging is appreciated.
Thanks in advance, kh.
最满意答案
System.Windows.Forms名称空间中的控件适用于WinForms应用程序。 System.Windows命名空间中的控件适用于WPF / Silverlight应用程序。 所以选择与你的应用类型相匹配的控件。
The controls in the System.Windows.Forms namespace are for WinForms applications. The controls in the System.Windows namespace are for WPF/Silverlight applications. So pick the controls that match your application type.
更多推荐
发布评论