Stopping SpaceBar from ticking the CheckBox in Silverlight
Can Someone please help me?
I have a Checkbox with a Textbox as its content, but every time I press开发者_开发技巧 spacebar in the textbox then the checkbox ticks and no space goes into the textbox.
Is there anyway to stop the checkbox from ticking if spacebar is pressed and instead put that space in the textbox?
Replace your construction with StackPanel
with separated CheckBox
and TextBox
.
<StackPanel Height="23" Orientation="Horizontal">
<CheckBox VerticalAlignment="Center" />
<TextBox MinWidth="100" />
</StackPanel>
精彩评论