-
- FrancoisRecisio
- Posts: 15
- Joined:
Define behaviors in code
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>Re: Define behaviors in code
Something like this should work
Code: Select all
NoesisApp::BehaviorCollection* behaviors = NoesisApp::Interaction::GetBehaviors(border);
behaviors->Add(Noesis::MakePtr<BackgroundEffectBehavior>());
Who is online
Users browsing this forum: No registered users and 2 guests