Reputation: 1190
I'm trying to attach multiple Behaviors to an UIElement (which, just judging from the the name of the Behaviors class should work). However, I can't find any documentation on the MSDN regarding this topic. Anybody who can help?
Upvotes: 0
Views: 1044
Reputation: 184682
Behaviors
is a collection you can arbitrarily add to it:
<i:Interaction.Behaviors>
<local:Behavior1 />
<local:Behavior2 />
</i:Interaction.Behaviors>
In code you first have to get the collection, then you can add to it, you do not set the Behaviors
property itself.
Upvotes: 1