I have a style with a Trigger for IsMouseOver, and I want to trigger that Trigger (heh) from C#. How can this be done? Thanks in advance!
I have a style with a Trigger for IsMouseOver , and I want to
Share
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 create a
DataTriggerand then bind to a property in your ViewModel.First create a
boolproperty that will advise the View whether it should ‘show’ or ‘not show’ your style.And then add the
DataTriggerto the XAMLThis obviously assumes you are using MVVM!