内容控件(Content Controls)
条目控件(Items Controls)
文本控件(Text Controls)
范围控件(Range Controls)
1. ButtonBase
ClickMode绝定Click事件是用什么方式触发,有Hover,Press和Release三种枚举方式。
IsPressed属性判断控件是否按下
2.RepeatButton(长按连续触发按钮)
Delay:作用就是按下时第一次触发Click的时间延迟,
Interval:每次click发生的时间间隔,如果大家玩转了Timer控件都应该很清楚。
4.ToggleButton
有第三种状态,只需要设置IsThreeState属性和Indeterminate事件即可。使用
Checked:当IsChecked为True时,产生该事件。
UnChecked:当IsChecked为False时,产生该事件。
Indeterminate:当IsChecked为Null时,产生该事件。
5.HeaderedContentControl
6.ToolTip
ToolTip也是继承自ContentControl
ToolTip提供了一个ToolTipSerivce类,可用于设计Tooltip显示的相对位置,提示时间。
<Button Name="button1"
ToolTipService.HorizontalOffset="20"
ToolTipService.VerticalOffset="20" >
<Button.ToolTip>
<StackPanel>
<GroupBox Header="XXX选择题,你懂得...">
<GroupBox.Content>
<StackPanel>
<TextBlock x:Name="A">A:XXXX</TextBlock>
<TextBlock x:Name="B">B:XX</TextBlock>
<TextBlock x:Name="C">C:OOOO</TextBlock>
<TextBlock x:Name="D">D:OO</TextBlock>
</StackPanel>
</GroupBox.Content>
</GroupBox>
</StackPanel>
</Button.ToolTip>
</Button>
7. ItemsControl
Selector:并非选择器。
8. 本控件
TextBox,RichTextBox和PasswordBox
9. 范围控件
基类RangeBase中的属性