Пример #1
0
 public virtual void ResolveMouseSelection()
 {
     foreach (MenuItem menuItem in menuItems)
     {
         if (ShortcutProvider.MouseIntersectsRectangle(ShortcutProvider.GetFontRectangle(menuItem.ItemPosition, fontName, menuItem.ItemName)))
         {
             foreach (MenuItem item in menuItems)
             {
                 item.IsSelected = false;
             }
             menuItem.IsSelected = true;
             break;
         }
     }
 }