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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.