开发者

Stopping SpaceBar from ticking the CheckBox in Silverlight

开发者 https://www.devze.com 2023-02-15 10:36 出处:网络
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.

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>
0

精彩评论

暂无评论...
验证码 换一张
取 消