// Command传参1
Command="{Binding VoltageCollectionCommand}" CommandParameter="{Binding ElementName=VoltageCellection,Path=IsChecked}"/>
// Command传参2
Command="{Binding OpenMsg}" CommandParameter="Warm"
comboBox
IsEditable="True" 可编辑
TabControl
TabStripPlacement="Bottom" 标签靠下
鼠标点击事件触发
<Grid.InputBindings> <MouseBinding MouseAction="LeftClick" Command="{Binding LeftClickSelectedCommand}"/> <MouseBinding MouseAction="RightClick" Command="{Binding RightClickSelectedCommand}"/> </Grid.InputBindings>
LeftClick | 1 |
单击鼠标左键。 |
LeftDoubleClick | 5 |
双击鼠标左键。 |
MiddleClick | 3 |
单击鼠标中键。 |
MiddleDoubleClick | 7 |
双击鼠标中键。 |
None | 0 |
无操作。 |
RightClick | 2 |
单击鼠标右键。 |
RightDoubleClick | 6 |
双击鼠标右键。 |
WheelClick | 4 |
旋转鼠标滚轮。 |