简体   繁体   English

ListBoxItem选定的属性

[英]ListBoxItem selected property

I'm using the ListBoxItem in xaml in cs and I need to know if there is a property in the object that said if it's clicked(marked). 我在CS的xaml中使用ListBoxItem ,我需要知道对象中是否有一个属性,该属性表示是否单击(已标记)。

Is there any property? 有没有财产? If so what is the name? 如果是这样,名字是什么?

There is a property IsSelected on the ListBoxItem class that returns whether it is selected or not. ListBoxItem类上有一个IsSelected属性,该属性返回是否选择它。 See this link for details. 有关详细信息,请参见此链接

This link shows the other properties and methods of the class. 链接显示了该类的其他属性和方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM