Exemplo n.º 1
0
        protected override void ClearContainerForItemOverride(DependencyObject element, object item)
        {
            base.ClearContainerForItemOverride(element, item);
            MenuControlButton mcb = element as MenuControlButton;

            mcb.Click -= ButtonClick;
        }
Exemplo n.º 2
0
        protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
        {
            base.PrepareContainerForItemOverride(element, item);
            MenuControlButton mcb = element as MenuControlButton;

            mcb.Owner       = item as MenuControlElement;
            mcb.Glyph       = mcb.Owner.Glyph;
            mcb.Content     = mcb.Owner.Caption;
            mcb.ShowContent = expanded;
            mcb.Click      += ButtonClick;
        }
Exemplo n.º 3
0
 protected virtual void OnHighlightedElementChanged(MenuControlButton oldValue)
 {
 }