user1604008
user1604008

Reputation: 1025

make individual items in listbox selectable

I have a listbox where some items should be selectable and others shouldn't be selectable.

The listbox uses a datatemplate and has animations that are initiated with triggers. I can set an attached property on listboxItem to do this but I'm at a loss as how to do this in a datatemplate

Upvotes: 1

Views: 162

Answers (1)

brunnerh
brunnerh

Reputation: 185290

Use the ItemContainerStyle to bind IsEnabled for example.

Upvotes: 1

Related Questions