views:

185

answers:

2

I am not interested in animations and I am trying to make simple setter action to be set without key frames.

I wanted to inherit TriggerAction; make properties that set the new value on target, any additional optional properties so I can use:

<EventTrigger SourceName="btn" RoutedEvent="Click">
    <BooleanActionTrigger TargetName="cb" Property="IsChecked" Value="False"/>
</EventTrigger>
A: 

If Expression Blend is installed, there is a DLL System.Windows.Interactivity.dll in C:\Program Files (x86)\Microsoft SDKs\Expression\Blend 3\Interactivity\Libraries\WPF\System.Windows.Interactivity.dll.

Then it's possible to inherit

System.Windows.Interactivity.TriggerAction<T> where T : DependencyObject    
System.Windows.Interactivity.TriggerBase<T> where T : DependencyObject    
System.Windows.Interactivity.Behavior<T> where T : DependencyObject
Shimmy
A: 

You can read in my blog a simple sample about TriggerAction classes and their usage in XAML code.

Hemme