简体   繁体   中英

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).

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. See this link for details.

This link shows the other properties and methods of the class.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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