Esempio n. 1
0
 public void Close()
 {
     if (Desktop != null)
     {
         Desktop.HideContextMenu();
     }
     HoverIndex = SelectedIndex = null;
 }
Esempio n. 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);
            }
        }
Esempio n. 3
0
 public void Close()
 {
     Desktop.HideContextMenu();
 }