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 controlWPF equivalent controlRemarks
BindingNavigatorNo equivalent control.
BindingSourceCollectionViewSource
ButtonButton
CheckBoxCheckBox
CheckedListBoxListBox with composition.
ColorDialogNo equivalent control.
ComboBoxComboBoxComboBox does not support auto-complete.
ContextMenuStripContextMenu
DataGridViewDataGrid
DateTimePickerDatePicker
DomainUpDownTextBox and two RepeatButton controls.
ErrorProviderNo equivalent control.
FlowLayoutPanelWrapPanel or StackPanel
FolderBrowserDialogNo equivalent control.
FontDialogNo equivalent control.
FormWindowWindow does not support child windows.
GroupBoxGroupBox
HelpProviderNo equivalent control.No F1 Help. "What's This" Help is replaced by ToolTips.
HScrollBarScrollBarScrolling is built into container controls.
ImageListNo equivalent control.
LabelLabel
LinkLabelNo equivalent control.You can use the Hyperlink class to host hyperlinks within flow content.
ListBoxListBox
ListViewListViewThe ListView control provides a read-only details view.
MaskedTextBoxNo equivalent control.
MenuStripMenuMenu control styling can approximate the behavior and appearance of the System.Windows.Forms.ToolStripProfessionalRenderer class.
MonthCalendarCalendar
NotifyIconNo equivalent control.
NumericUpDownTextBox and two RepeatButton controls.
OpenFileDialogOpenFileDialogThe OpenFileDialog class is a WPF wrapper around the Win32 control.
PageSetupDialogNo equivalent control.
PanelCanvas
PictureBoxImage
PrintDialogPrintDialog
PrintDocumentNo equivalent control.
PrintPreviewControlDocumentViewer
PrintPreviewDialogNo equivalent control.
ProgressBarProgressBar
PropertyGridNo equivalent control.
RadioButtonRadioButton
RichTextBoxRichTextBox
SaveFileDialogSaveFileDialogThe SaveFileDialog class is a WPF wrapper around the Win32 control.
ScrollableControlScrollViewer
SoundPlayerMediaPlayer
SplitContainerGridSplitter
StatusStripStatusBar
TabControlTabControl
TableLayoutPanelGrid
TextBoxTextBox
TimerDispatcherTimer
ToolStripToolBar
ToolStripContainerToolBar with composition.
ToolStripDropDownToolBar with composition.
ToolStripDropDownMenuToolBar with composition.
ToolStripPanelToolBar with composition.
ToolTipToolTip
TrackBarSlider
TreeViewTreeView
UserControlUserControl
VScrollBarScrollBarScrolling is built into container controls.
WebBrowserFrame, System.Windows.Controls.WebBrowserThe 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.

ElementHost
WindowsFormsHost
WPF Designer for Windows Forms Developers
Walkthrough: Hosting a Windows Forms Control in WPF
Walkthrough: Hosting a WPF Composite Control in Windows Forms
Migration and Interoperability

Show: