Пример #1
0
        public void ActivateKeyTips(Ribbon ribbon, IKeyTipHandler prev)
        {
            _ribbon = ribbon;
            _prev   = prev;
            foreach (RibbonGroupBox g in Groups)
            {
                Debug.WriteLine("GROUP KEYS: " + KeyTip.GetKeyTipKeys(g));
            }

            Focus();
            KeyTip.SetShowChildKeyTipKeys(this, true);
            KeyDown += RibbonTab_KeyDown;
        }
Пример #2
0
 private void RibbonTab_KeyDown(object sender, KeyEventArgs e)
 {
     /*if (e.Key == Key.Escape)
      * {
      *  KeyTip.SetShowChildKeyTipKeys(_ribbon, true);
      *  _ribbon.IsCollapsedPopupOpen = false;
      *  e.Handled = true;
      * }
      * else
      * {*/
     e.Handled = HandleKeyTipKeyPress(e.Key);
     if (e.Handled)
     {
         _ribbon.IsCollapsedPopupOpen = false;
     }
     //}
     KeyTip.SetShowChildKeyTipKeys(this, false);
     KeyDown -= RibbonTab_KeyDown;
 }
Пример #3
0
 public RibbonTab()
 {
     LostFocus += (sneder, args) => KeyTip.SetShowChildKeyTipKeys(this, false);
 }