Beispiel #1
0
 public void Close()
 {
     if (Desktop != null)
     {
         Desktop.HideContextMenu();
     }
     HoverIndex = SelectedIndex = null;
 }
Beispiel #2
0
        private void OnSelectedIndexChanged(object sender, EventArgs e)
        {
            if (OpenMenuItem != null)
            {
                try
                {
                    _internalSetSelectedIndex = true;
                    Desktop.HideContextMenu();
                }
                finally
                {
                    _internalSetSelectedIndex = false;
                }
            }

            var menuItem = SelectedMenuItem;

            if (menuItem != null && menuItem.CanOpen)
            {
                ShowSubMenu(menuItem);
            }
        }
Beispiel #3
0
 public void Close()
 {
     Desktop.HideContextMenu();
 }