I have a wpf listbox with a custom item template which contains a rectangle. The each item in the listbox can be selected (only one at a time). I w
listbox
For The each item in the listbox can be selected (only one at a time).
The each item in the listbox can be selected (only one at a time).
You can come up with one of followings
1- Disable the item after it is selected.
2- Maintain a list at backend to mark each index selectable or unselectable.