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); } }
public static void SetContent(UIElement element, AnimaCollection value) { element.SetValue(ContentProperty, value); }
public static void SetContent(UIElement element, AnimaCollection value) { element.SetValue(IsBubbleSourceProperty, value); }