wpf usercntrol中的控件顺序 [英] Order of Controls in wpf usercntrol

查看:248
本文介绍了wpf usercntrol中的控件顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有很多文本框(TextBox1,TextBox2,TextBox3,TextBox4,TextBox5等)和wpf中的一个按钮(按钮1) usercontrol。在xaml文件中,这些文本框不按顺序排列。所以标签工作不正常。有什么方法可以解决这个问题吗?请帮帮我....



谢谢,

Kunjammu

Hi,

I have many textboxes(TextBox1, TextBox2,TextBox3,TextBox4,TextBox5...etc) and one button(Button 1) in a wpf usercontrol.In the xaml file these textboxes are not in order. so tab is not working properly.is there any way to solve this issue?Please Help me....

Thanks,
Kunjammu

推荐答案

你好

你可以使用控件的TabIndex属性。

喜欢TabIndex =0 (从低到高的数字)。



您也可以将IsTabStop属性设置为True或False,您希望控件包含在选项卡循环与否。

Hello
You can use the control''s TabIndex property.
Like TabIndex="0" (number from low to high).

You may also set the IsTabStop property to "True" or "False" wether you like the control to be included in the tab loop or not.
<textbox text="tabbed" istabstop="True" tabindex="0" />
<textbox text="Tabbed" istabstop="True" tabindex="1" />
<textbox text="Skipped" istabstop="False" />
<button content="Done" istabstop="True" tabindex="2" />



希望它有所帮助!


Hope it helps!


这篇关于wpf usercntrol中的控件顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆