コード例 #1
0
 private void InitializeOnAttached(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     if (d is Button attachingElement)
     {
         // Use or store Button
         // Or access AnimaCollection or subscribe to CollectionChanged of AnimaCollection
         AnimaCollection contentCollection = AnimaBehavior.GetContent(attachingElement);
     }
 }
コード例 #2
0
 public static void SetContent(UIElement element, AnimaCollection value)
 {
     element.SetValue(ContentProperty, value);
 }
コード例 #3
0
 public static void SetContent(UIElement element, AnimaCollection value)
 {
     element.SetValue(IsBubbleSourceProperty, value);
 }