private static readonly DependencyProperty BehaviorsProperty = DependencyProperty.RegisterAttached("ShadowBehaviors", typeof(BehaviorCollection), typeof(Interaction), new FrameworkPropertyMetadata(new PropertyChangedCallback(Interaction.OnBehaviorsChanged))); public static BehaviorCollection GetBehaviors(DependencyObject obj) { BehaviorCollection behaviors = (BehaviorCollection) obj.GetValue(BehaviorsProperty); if (behaviors == null) { behaviors = new BehaviorCollection(); obj.SetValue(BehaviorsProperty, behaviors); } return behaviors; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)