Hi all,
I try to set a local property through XAML and a trigger.
The idea is to "reproduce" the behaviour that exists in most of settings pages with an "Apply" button at the bottom.
As soon as the user modify one the the control/settings in the page, I want to set a local variable ("FilterModified") to "true".
I tried this, but somehow, I cannot get it to compile:
<ToggleButton.Triggers>
<Trigger Property="ToggleButton.IsChecked">
<Setter Property="myUserControl.FilterModified" Value="True"/>
</Trigger>
</ToggleButton.Triggers>
In the code, FilterModified is declare like this:
public partial class myUserControl: UserControl
{
public static Boolean FilterModified { get; set; }
Could someone please help me?
Thx in advance.
Fred