Does WPF have equivalent controls for all Winforms controls?

Just found it in a difficult situation. I would like to open FontDialog so that the user can select the font .. one of those familiar dialogs.

+5
source share
5 answers

Not all of them have equivalents.
For example, FontDialog does not. (Grumbling grumbles). This page has a complete low publication because it can be useful as a mental note. http://msdn.microsoft.com/en-us/library/ms750559.aspx

Update: WPF . -, RTM. FontDialog, , ColorPicker. , Win32, WPF (, Font Color " ".)

http://blogs.msdn.com/wpfsdk/archive/2006/10/26/Uncommon-Dialogs--Font-Chooser-and-Color-Picker-Dialogs.aspx

+7

VistaBridge vista!

, System.Win32 Microsoft.Win32

[ UPDATE] `Microsoft.Win32.FileDialog

+1

Windows WindowsFormsHost - \ ..

WEB, :

NumericUpDown DateTimePicker SplitButton

, , WPFDataGrid

+1

, WPF- , , WPF - WinForms, ( , ..), .

0

Unfortunately, this is not the case. However, you can β€œborrow” some of the Windows Forms dialog boxes using the Microsoft.Win32 namespace, or you can integrate Windows Forms controls using the WPF System.Windows.Forms.WindowsFormHost element. In addition, you can display Windows Forms dialogs directly by calling the constructor, and then calling the ShowDialog () method.

0
source

All Articles