控件類型
大體可以分為6類
1.布局控件
可以容納多個(gè)布局或者嵌套其他布局的控件鹃栽,用于UI上組織和排列控件浑此,其父類是Panel.
2.內(nèi)容控件
只能容納一個(gè)控件或者布局控件作為他的內(nèi)容。所以經(jīng)常借助布局控件來(lái)規(guī)劃其內(nèi)容。其父類為ContentControl.
3.帶標(biāo)題內(nèi)容控件
相當(dāng)于一個(gè)內(nèi)容控件,但是可以加一個(gè)標(biāo)題莽使,標(biāo)題部分也可以容納一個(gè)控件或者布局,其父類為HeaderedContentControl.
4.條目控件
可以顯示一列數(shù)據(jù)笙僚,一般情況下芳肌,是數(shù)據(jù)的類型是相同的.其共同的基類為ItemsControl.
5.帶標(biāo)題的條目控件
和上面的帶標(biāo)題內(nèi)容控件類同,其基類為HeaderdeItemsControl.
6.特殊內(nèi)容控件
這類控件比較獨(dú)立肋层,但也比較常用亿笤,如TextBox,TextBlock栋猖,Image等.
控件類型與列表
Editing
CheckBox, ComboBox,PasswordBox,RadioButton,RichTextBox, Slider, TextBox
List
Selection ListBox, ListView, TreeView
User Information
Label, ProgressBar, Popup, ToolTip
Action
Button, ContextMenu, Menu, Separator, StatusBar, Thumb,ToolBar
Appearance
Border, BulletDecorator, Decorator, Image, Viewbox
Dialog boxes
OpenFileDialog, PrintDialog, SaveFileDialog
Containers
Expander, GroupBox, RepeatButton, ScrollBar, ScrollViewer, TabControl
Layout
Canvas, DockPanel, Grid, GridSplitter, Panel, StackPanel, VirtualizingStackPanel, WrapPane Navigation Frame, Hyperlink
Documents
DocumentViewer, FlowDocumentPageViewer, FlowDocumentReader, FlowDocumentScrollViewer