How to get the listboxitem when listbox do data binding in WPF?
WPF
2
Posts
2
Posters
0
Views
1
Watching
-
I wish to disable particcular listbox items from a listbox binding with a list,How can i get the ListBoxitem?
You will have to databind the IsEnabled Property of ListBox item to a CLR property in the databound object. The Visual tree is not accessible easily once you use Data binding. Once you databind the IsEnabled property to a CLR property then setting the CLR property will automatically enable\disable the ListBox item. Hope I made sense :)