Define behaviors in code
Posted: 21 May 2026, 14:55
Hello ! :)
I would like to know if it's possible to access/modify a behavior from the code?
Specifically, I would like to be able to assign it dynamically in the code, based on certain conditions... But I haven't found any documentation on this.
Thanks!
I would like to know if it's possible to access/modify a behavior from the code?
Specifically, I would like to be able to assign it dynamically in the code, based on certain conditions... But I haven't found any documentation on this.
Code: Select all
<Border x:Class="xxx">
<b:Interaction.Behaviors>
<BackgroundEffectBehavior>
<BlurEffect Radius="25" />
</BackgroundEffectBehavior>
</b:Interaction.Behaviors>