Windows Forms Controls and Equivalent WPF Controls
Many Windows Forms controls have equivalent WPF controls, but some Windows Forms controls have no equivalents in WPF. This topic compares control types provided by the two technologies.
You can always use interoperation to host Windows Forms controls that do not have equivalents in your WPF-based applications.
The following table shows which Windows Forms controls and components have equivalent WPF control functionality.
Windows Forms control |
WPF equivalent control |
Remarks |
---|---|---|
No equivalent control. |
||
ListBox with composition. |
||
No equivalent control. |
||
ComboBox does not support auto-complete. |
||
TextBox and two RepeatButton controls. |
||
No equivalent control. |
||
No equivalent control. |
||
No equivalent control. |
||
Window does not support child windows. |
||
No equivalent control. |
No F1 Help. "What's This" Help is replaced by ToolTips. |
|
Scrolling is built into container controls. |
||
No equivalent control. |
||
No equivalent control. |
You can use the Hyperlink class to host hyperlinks within flow content. |
|
The ListView control provides a read-only details view. |
||
No equivalent control. |
||
Menu control styling can approximate the behavior and appearance of the System.Windows.Forms.ToolStripProfessionalRenderer class. |
||
No equivalent control. |
||
TextBox and two RepeatButton controls. |
||
The OpenFileDialog class is a WPF wrapper around the Win32 control. |
||
No equivalent control. |
||
No equivalent control. |
||
No equivalent control. |
||
No equivalent control. |
||
The SaveFileDialog class is a WPF wrapper around the Win32 control. |
||
ToolBar with composition. |
||
ToolBar with composition. |
||
ToolBar with composition. |
||
ToolBar with composition. |
||
Scrolling is built into container controls. |
||
The Frame control can host HTML pages. Starting in the .NET Framework 3.5 SP1, the System.Windows.Controls.WebBrowser control can host HTML pages and also backs the Frame control. |
See Also
Tasks
Walkthrough: Hosting a Windows Forms Control in WPF
Reference
Concepts
WPF Designer for Windows Forms Developers
Walkthrough: Hosting a WPF Composite Control in Windows Forms