public Forward ( string keys, bool click ) : bool | ||
keys | string | Keys |
click | bool | If true the element will be clicked |
return | bool |
void Show() { // Check whether the window is still active // (it prevent keytips showing during Alt-Tab'ing) if (!window.IsActive) { RestoreFocuses(); return; } activeAdornerChain = new KeyTipAdorner(ribbon, ribbon, null); activeAdornerChain.Terminated += OnAdornerChainTerminated; // Special behavior for backstage Backstage backstage = ribbon.Menu as Backstage; if (backstage != null && backstage.IsOpen) { string keys = KeyTip.GetKeys(backstage); if (!String.IsNullOrEmpty(keys)) { activeAdornerChain.Forward(KeyTip.GetKeys(backstage), false); } else { activeAdornerChain.Attach(); } } else { activeAdornerChain.Attach(); } }
void Show() { // Check whether the window is still active // (it prevent keytips showing during Alt-Tab'ing) if (!window.IsActive) { RestoreFocuses(); return; } activeAdornerChain = new KeyTipAdorner(ribbon, ribbon, null); activeAdornerChain.Terminated += OnAdornerChainTerminated; if (ribbon.IsBackstageOpen) { activeAdornerChain.Forward(Ribbon.Localization.BackstageButtonKeyTip, false); } else { activeAdornerChain.Attach(); } }
void Show() { // Check whether the window is still active // (it prevent keytips showing during Alt-Tab'ing) if (!window.IsActive) { RestoreFocuses(); return; } activeAdornerChain = new KeyTipAdorner(ribbon, ribbon, null); activeAdornerChain.Terminated += OnAdornerChainTerminated; // Special behavior for backstage Backstage backstage = ribbon.Menu as Backstage; if (backstage != null && backstage.IsOpen) { string keys = KeyTip.GetKeys(backstage); if (!String.IsNullOrEmpty(keys)) activeAdornerChain.Forward(KeyTip.GetKeys(backstage), false); else activeAdornerChain.Attach(); } else activeAdornerChain.Attach(); }
void Show() { // Check whether the window is still active // (it prevent keytips showing during Alt-Tab'ing) if (!window.IsActive) { RestoreFocuses(); return; } activeAdornerChain = new KeyTipAdorner(ribbon, ribbon, null); activeAdornerChain.Terminated += OnAdornerChainTerminated; if (ribbon.IsBackstageOpen) activeAdornerChain.Forward(Ribbon.Localization.BackstageButtonKeyTip, false); else activeAdornerChain.Attach(); }