如何在Wpf中找到控件? [英] How Can I Find A Control In Wpf?
本文介绍了如何在Wpf中找到控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
this.Controls.Find在WinForms中用于查找控件。然后我如何在WPF中找到一个控件?
先谢谢
解决方案
看看这个链接
http://stackoverflow.com/questions/ 636383 / how-can-i-find-wpf-by-name-or-type [ ^ ]
或
http://stackoverflow.com/questions/12238599/find-wpf-control-by-name [ ^ ]
this.Controls.Find is used in WinForms for find a control. Then how can i find a control in WPF?
Thanks In advance解决方案Have a look at this link
http://stackoverflow.com/questions/636383/how-can-i-find-wpf-controls-by-name-or-type[^]
or
http://stackoverflow.com/questions/12238599/find-wpf-control-by-name[^]
这篇关于如何在Wpf中找到控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文