I am trying to use Behaviors to handle the click event of a button in WPF.
<Button Content="Another Button" Width="100" IsEnabled="True">
<i:Interaction.Triggers>
...
</i:Interaction.Triggers>
</Button>
However I am getting this error message:
The attachable property 'Triggers' was not found in type 'Interaction'
Here is my namespace for i: xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
And I have included the System.Windows.Interactivity
assembly. I presumed that was all that I need to do to use behaviors but obviously something is going wrong.
For Visual Studio 2010 you need to include these 3 references from Expression Blend: System.Windows.Interactivity, Microsoft.Expression.Controls and Microsoft.Expression.Interactions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With