使用foreach选择控件 [英] select controls using foreach
本文介绍了使用foreach选择控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何在Silverlight中使用foreach在用户控件中选择控件
在Silverlight中我找不到
MyuseControl.控制
how i can select the controls in my Usercontrol with foreach in silverlight
in silverlight i can''t find
MyuseControl.Contols
推荐答案
使用foreach
查找控件是一个坏主意.您可以给控件命名并使用它. 选择"是什么意思?给它一个键盘焦点?通常从一开始就不做或只做一次.为此目的寻找任何东西都是没有道理的.
—SA
Usingforeach
for finding a control is a bad idea. You can give a control a name and use it. What do your mean by "select"? Give it a keyboard focus? Normally don''t do it or do it only once, in the very beginning. Finding something for this purpose makes no sense.
—SA
这篇关于使用foreach选择控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文