Пример #1
0
 private static void UnlinkKeyTipControlFromAdorner(KeyTipAdorner adorner)
 {
     KeyTipControl keyTipControl = adorner.KeyTipControl;
     adorner.UnlinkKeyTipControl();
     if (keyTipControl != null)
     {
         // Save the unlinked KeyTipControl to cache for reuse.
         KeyTipService current = Current;
         if (current._cachedKeyTipControls == null)
         {
             current._cachedKeyTipControls = new List<KeyTipControl>();
         }
         current._cachedKeyTipControls.Add(keyTipControl);
     }
 }