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 | Windows Presentation Foundation equivalent control | Remarks |
---|---|---|
No equivalent control. |
||
ListBox with composition. |
||
No equivalent control. |
||
ComboBox does not support auto-complete. |
||
No equivalent control. |
Some capabilities of the DataGridView control are reproduced with the ListView and GridView controls. |
|
No equivalent control. |
||
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. |
||
ListBox |
||
ListView |
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. |
||
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. |
||
TextBox |
||
ToolBar with composition. |
||
ToolBar with composition. |
||
ToolBar with composition. |
||
ToolBar with composition. |
||
ScrollBar |
Scrolling is built into container controls. |
|
Both the Frame control and the System.Windows.Forms.WebBrowser control can host HTML pages. |
See Also
Tasks
Walkthrough: Hosting a Windows Forms Control in Windows Presentation Foundation
Reference
Concepts
Walkthrough: Hosting a Windows Presentation Foundation Control in Windows Forms