如何在wpf中找到复选框控件 [英] how to find checkbox control in wpf

查看:197
本文介绍了如何在wpf中找到复选框控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在datagrid中查找复选框控件以及如何知道是否选中复选框控件的状态?

解决方案

谢尔盖的评论非常重要,所以...下次提供有关您需求的更多详细信息。



看看这里:

http://stackoverflow.com/questions/636383/wpf-ways-to-find-controls [ ^ ]

http://www.c-sharpcorner.com/uploadfile/mahesh / find-controls-by-name-in-wpf / [ ^ ]


使用复选框绑定布尔属性,如果选中它,则会得到。

我举了一个例子来做这个这里 [ ^ ]。


how to find checkbox control in datagrid and how to know status of checkbox control that is it checked or not?

解决方案

Sergey''s comment is very important, so... next time provide more details about your needs.

Have a look here:
http://stackoverflow.com/questions/636383/wpf-ways-to-find-controls[^]
http://www.c-sharpcorner.com/uploadfile/mahesh/find-controls-by-name-in-wpf/[^]


Bind a boolean property with check box you will get if it is checked or not.


I gave an example of doing this here[^].


这篇关于如何在wpf中找到复选框控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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