private static void OnDropDownProeprtyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { MenuButton sender = (MenuButton)d; sender.OnDropDownChanged(e.OldValue as ContextMenu, e.NewValue as ContextMenu); }
internal static void SetParentMenuButton(ContextMenu obj, MenuButton value) { obj.SetValue(ParentMenuButtonProperty, value); }