Here is an example of how you'd do it using the GUI.
Consider this Window:
The goal in my example is to make the Stroke
of the Rectangle
blue when the Checkbox.IsChecked
property changes to True
.
For that first we have to add a ChangePropertyAction
from Assets
> Behaviors
.
Drag and drop it onto a window/template/whatever. I put it into the window:
Now if you select it you can specify the Trigger
in Properties
.
I set the TriggerType
to DataTrigger
, the Binding
to Checkbox.IsChecked
and the required value for the Trigger
to True
.
Next, I specify the Value
that should be changed when the Trigger
fires.
I set the Target
to the Rectangle
, specified Stroke
as PropertyName
and set the Value
this property should get when the Trigger
fires to blue.
If I now start the application this is the result when I check the CheckBox
: