private static void _NoteChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { CommandLink cl = (CommandLink)d; cl.SetValue(HasNotePropertyKey, e.NewValue != null); cl.OnNoteChanged(e.OldValue, e.NewValue); }
private static void _IconChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { CommandLink cl = (CommandLink)d; cl.OnIconChanged((CommandLinkIcon)e.OldValue, (CommandLinkIcon)e.NewValue); }