Is there a way to set an attached property through a style?
I have, for example, a button on which the interaction material is installed (from System.Windows.Interactivity)
<Button>
<i:Interaction.Triggers>
...
</i:Interaction.Triggers>
</Button>
Now I would like to create a style in which this Interaction.Triggers property is set, thereby replacing redundancy, indicating this property on each Button instance. Is this possible in WPF?
<Style Target={x:Type Button}>
<Setter PropertyName="i.Interaction.Triggers">
...
Somehow I canโt understand how, but I saw other examples on the Internet where the attached properties seem to be accessible from within the style ...
Update
So basically this is more of a problem with Interaction.Triggers, which has no way to โinstallโ something. How can I reuse a set of interaction definitions?