WPF 2 compare winform controls and wpf controls

Today, I continue research on wpf, and rewrite my map explorer to wpf version, I mention many problem that you can see at last article.

 

I found there is no ColorDialog in wpf application, and toolbar also doesn't work, I cann't add items, the add button is disable, I think maybe I should add ItemsSource first, it implement IEnmerable. When I fix that I will write detail resolution.

 

I list the 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

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

No equivalent control.

Some capabilities of the DataGridView control are reproduced with the ListView and GridView controls.

DateTimePicker

No equivalent control.

 

DomainUpDown

TextBox and two RepeatButton controls.

 

ErrorProvider

No equivalent control.

 

FlowLayoutPanel

WrapPanel or StackPanel

 

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. "What's This" Help is replaced by ToolTips.

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

No equivalent control.

 

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

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.

Bottom of Form

 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值