Controles de Windows Forms y controles equivalentes de WPFWindows Forms Controls and Equivalent WPF Controls

Muchos Windows FormsWindows Forms controles tienen equivalentes WPFWPF controles, pero algunos Windows FormsWindows Forms controles no tienen equivalentes WPFWPF.Many Windows FormsWindows Forms controls have equivalent WPFWPF controls, but some Windows FormsWindows Forms controls have no equivalents in WPFWPF. Este tema comparan los tipos de control proporcionados por las dos tecnologías.This topic compares control types provided by the two technologies.

Siempre puede utilizar la interoperación con host Windows FormsWindows Forms controles que no tienen equivalentes en su WPFWPF-aplicaciones basadas en.You can always use interoperation to host Windows FormsWindows Forms controls that do not have equivalents in your WPFWPF-based applications.

En la tabla siguiente se muestra qué Windows FormsWindows Forms controles y componentes tienen un equivalente WPFWPF controlen la funcionalidad.The following table shows which Windows FormsWindows Forms controls and components have equivalent WPFWPF control functionality.

control de Windows FormsWindows Forms control Controles equivalentes de WPFWPF equivalent control ComentariosRemarks
BindingNavigator No hay control equivalente.No equivalent control.
BindingSource CollectionViewSource
Button Button
CheckBox CheckBox
CheckedListBox ListBox con la composición.ListBox with composition.
ColorDialog No hay control equivalente.No equivalent control.
ComboBox ComboBox ComboBox no admite Autocompletar.ComboBox does not support auto-complete.
ContextMenuStrip ContextMenu
DataGridView DataGrid
DateTimePicker DatePicker
DomainUpDown TextBox y dos RepeatButton controles.TextBox and two RepeatButton controls.
ErrorProvider No hay control equivalente.No equivalent control.
FlowLayoutPanel WrapPanel o StackPanelWrapPanel or StackPanel
FolderBrowserDialog No hay control equivalente.No equivalent control.
FontDialog No hay control equivalente.No equivalent control.
Form Window Window no se admite ventanas secundarias.Window does not support child windows.
GroupBox GroupBox
HelpProvider No hay control equivalente.No equivalent control. No hay ayuda F1.No F1 Help. "¿Qué es esto" Ayuda se reemplaza por información sobre herramientas."What's This" Help is replaced by ToolTips.
HScrollBar ScrollBar El desplazamiento está integrado en los controles del contenedor.Scrolling is built into container controls.
ImageList No hay control equivalente.No equivalent control.
Label Label
LinkLabel No hay control equivalente.No equivalent control. Puede usar el Hyperlink clase hospedar hipervínculos dentro del contenido dinámico.You can use the Hyperlink class to host hyperlinks within flow content.
ListBox ListBox
ListView ListView El ListView control proporciona una vista de detalles de solo lectura.The ListView control provides a read-only details view.
MaskedTextBox No hay control equivalente.No equivalent control.
MenuStrip Menu Menu estilos de control pueden aproximar el comportamiento y apariencia de la System.Windows.Forms.ToolStripProfessionalRenderer clase.Menu control styling can approximate the behavior and appearance of the System.Windows.Forms.ToolStripProfessionalRenderer class.
MonthCalendar Calendar
NotifyIcon No hay control equivalente.No equivalent control.
NumericUpDown TextBox y dos RepeatButton controles.TextBox and two RepeatButton controls.
OpenFileDialog OpenFileDialog El OpenFileDialog clase es un WPFWPF contenedor en torno a la Win32Win32 control.The OpenFileDialog class is a WPFWPF wrapper around the Win32Win32 control.
PageSetupDialog No hay control equivalente.No equivalent control.
Panel Canvas
PictureBox Image
PrintDialog PrintDialog
PrintDocument No hay control equivalente.No equivalent control.
PrintPreviewControl DocumentViewer
PrintPreviewDialog No hay control equivalente.No equivalent control.
ProgressBar ProgressBar
PropertyGrid No hay control equivalente.No equivalent control.
RadioButton RadioButton
RichTextBox RichTextBox
SaveFileDialog SaveFileDialog El SaveFileDialog clase es un WPFWPF contenedor en torno a la Win32Win32 control.The SaveFileDialog class is a WPFWPF wrapper around the Win32Win32 control.
ScrollableControl ScrollViewer
SoundPlayer MediaPlayer
SplitContainer GridSplitter
StatusStrip StatusBar
TabControl TabControl
TableLayoutPanel Grid
TextBox TextBox
Timer DispatcherTimer
ToolStrip ToolBar
ToolStripContainer ToolBar con la composición.ToolBar with composition.
ToolStripDropDown ToolBar con la composición.ToolBar with composition.
ToolStripDropDownMenu ToolBar con la composición.ToolBar with composition.
ToolStripPanel ToolBar con la composición.ToolBar with composition.
ToolTip ToolTip
TrackBar Slider
TreeView TreeView
UserControl UserControl
VScrollBar ScrollBar El desplazamiento está integrado en los controles del contenedor.Scrolling is built into container controls.
WebBrowser Frame, System.Windows.Controls.WebBrowserFrame, System.Windows.Controls.WebBrowser El Frame control puede hospedar páginas HTML.The Frame control can host HTML pages.

A partir de la .NET Framework 3.5 SP1.NET Framework 3.5 SP1, System.Windows.Controls.WebBrowser control puede hospedar páginas HTML y también realiza una copia de la Frame control.Starting in the .NET Framework 3.5 SP1.NET Framework 3.5 SP1, the System.Windows.Controls.WebBrowser control can host HTML pages and also backs the Frame control.

Vea tambiénSee Also

ElementHost
WindowsFormsHost
WPF Designer para Windows Forms a los desarrolladoresWPF Designer for Windows Forms Developers
Tutorial: Hospedar un control de Windows Forms en WPFWalkthrough: Hosting a Windows Forms Control in WPF
Tutorial: Hospedar un control compuesto de WPF en formularios Windows FormsWalkthrough: Hosting a WPF Composite Control in Windows Forms
Migración e interoperabilidadMigration and Interoperability