I have a simple application that contain CheckBox and Button, and I want to enable the button only if the CheckBox is checked.
I can achieve that by binding the IsEnabled property of the Button to IsChecked property of the CheckBox as follow:
But i want to do that using trigger. I tried to use property triger (IsChecked is DependencyProperty ) and DataTrigger as follow:
but it's not work. I know that the is an EventTrigger but when you use it you need the storyboard and there is no setter like in the other triggers.
What I want to know is 1. Why It's not work with PropertyTriger or DataTrigger 2. And how can it work using trigger (Even with EventTrigger)