Can I use a trigger on the SelectedItem property in any control that supports SelectedItem?
<Trigger
Property="SelectedItem"
Value="{x:NotNull}" >
</Trigger>
What I want is when the SelectedItem is Not null for the trigger to fire.
Tnx
Can I use a trigger on the SelectedItem property in any control that supports SelectedItem?
<Trigger
Property="SelectedItem"
Value="{x:NotNull}" >
</Trigger>
What I want is when the SelectedItem is Not null for the trigger to fire.
Tnx
You can use a trigger on the SelectedItem property, but you cannot (by default) trigger when that value is not null.
You've got two options:
This stack overflow post describes both of these options in detail.