5 namespace SiliconStudio.Presentation.Interactivity
26 obj.SetValue(BehaviorsProperty, value);
29 private static void OnBehaviorCollectionChanged(
DependencyObject d, DependencyPropertyChangedEventArgs e)
38 if (newValue.AssociatedObject != null)
39 newValue = newValue.Clone();
A collection of behavior that synchronize with the System.Windows.Interactivity.Interaction.Behaviors attached property.
static BehaviorCollection GetBehaviors(DependencyObject obj)
A container for an attached dependency property that contains a collection of behavior. The purpose of this class is to be used in place of System.Windows.Interactivity.Interaction. This class allows to set behaviors in styles because SiliconStudio.Presentation.Interactivity.BehaviorCollection has a public parameterless constructor and the Behaviors attached property has a public setter. When the collection is modified or set, it automatically synchronize the attached property System.Windows.Interactivity.Interaction.Behaviors.
static void SetBehaviors(DependencyObject obj, BehaviorCollection value)