Compartilhar via


Controles de Formulários do Windows e Controles WPF Equivalentes

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

Controle equivalente do WPF

Remarks

BindingNavigator

No equivalent control.

BindingSource

CollectionViewSource

Button

Button

CheckBox

CheckBox

CheckedListBox

ListBox with composition.

ColorDialog

No equivalent control.

ComboBox

ComboBox

ComboBox does not support auto-complete.

ContextMenuStrip

ContextMenu

DataGridView

DataGrid

DateTimePicker

DatePicker

DomainUpDown

TextBox and two RepeatButton controls.

ErrorProvider

No equivalent control.

FlowLayoutPanel

WrapPanelouStackPanel

FolderBrowserDialog

No equivalent control.

FontDialog

No equivalent control.

Form

Window

Window does not support child windows.

GroupBox

GroupBox

HelpProvider

No equivalent control.

No F1 Help. " O que é isto" Ajuda é substituída por dicas de ferramentas.

HScrollBar

ScrollBar

Scrolling is built into container controls.

ImageList

No equivalent control.

Label

Label

LinkLabel

No equivalent control.

You can use the Hyperlink class to host hyperlinks within flow content.

ListBox

ListBox

ListView

ListView

The ListView control provides a read-only details view.

MaskedTextBox

No equivalent control.

MenuStrip

Menu

Menu control styling can approximate the behavior and appearance of the System.Windows.Forms.ToolStripProfessionalRenderer class.

MonthCalendar

Calendar

NotifyIcon

No equivalent control.

NumericUpDown

TextBox and two RepeatButton controls.

OpenFileDialog

OpenFileDialog

The OpenFileDialog class is a WPF wrapper around the Win32 control.

PageSetupDialog

No equivalent control.

Panel

Canvas

PictureBox

Image

PrintDialog

PrintDialog

PrintDocument

No equivalent control.

PrintPreviewControl

DocumentViewer

PrintPreviewDialog

No equivalent control.

ProgressBar

ProgressBar

PropertyGrid

No equivalent control.

RadioButton

RadioButton

RichTextBox

RichTextBox

SaveFileDialog

SaveFileDialog

The SaveFileDialog class is a WPF wrapper around the Win32 control.

ScrollableControl

ScrollViewer

SoundPlayer

MediaPlayer

SplitContainer

GridSplitter

StatusStrip

StatusBar

TabControl

TabControl

TableLayoutPanel

Grid

TextBox

TextBox

Timer

DispatcherTimer

ToolStrip

ToolBar

ToolStripContainer

ToolBar with composition.

ToolStripDropDown

ToolBar with composition.

ToolStripDropDownMenu

ToolBar with composition.

ToolStripPanel

ToolBar with composition.

ToolTip

ToolTip

TrackBar

Slider

TreeView

TreeView

UserControl

UserControl

VScrollBar

ScrollBar

Scrolling is built into container controls.

WebBrowser

Frame, System.Windows.Controls.WebBrowser

O Frame pode hospedar o controle HTML de páginas.

Iniciando no .NET Framework 3.5 SP1, o System.Windows.Controls.WebBrowser controle pode hospedar páginas HTML e também faz o Frame de controle.

Consulte também

Tarefas

Demonstra Passo a passo: Hospedando um controle Windows Forms no WPF

Referência

ElementHost

WindowsFormsHost

Conceitos

WPF Designer para desenvolvedores de formulários do Windows

Demonstra Passo a passo: Hospedando um controle composto do WPF no Windows Forms

Outros recursos

Migração e Interoperabilidade