Пример #1
0
        //END Properties



        //EVENTS

        private void ItemHighlight_MouseEnter(object sender, MouseEventArgs e)
        {
            VisualStateManager.GoToState(this, "ItemHighlightedMI", true);
            //if it's a root level menuItem collapse all other drop downs
            if (parentMenuBarItem != null)
            {
                parentMenuBarItem.CollapseChildDropDownMenus();
            }
            else if (parentMenuItem != null)
            {
                parentMenuItem.CollapseChildDropDownMenus();
            }
        }
Пример #2
0
        //EVENTS

        private void ItemHighlight_MouseEnter(object sender, MouseEventArgs e)
        {
            VisualStateManager.GoToState(this, "ItemHighlightedMI", true);
            //if it's a root level menuItem collapse all other drop downs
            if (parentMenuBarItem != null)
            {
                parentMenuBarItem.CollapseChildDropDownMenus();
            }
            else if (parentMenuItem != null)
            {
                parentMenuItem.CollapseChildDropDownMenus();
            }

            if (EnableMouseOverDelay && isNested)
            {
                if (MouseOverTimer.IsEnabled)
                {
                    MouseOverTimer.Stop();
                }

                MouseOverTimer.Interval = new TimeSpan(0, 0, 0, 0, MouseOverDelay);
                MouseOverTimer.Start();
            }
        }