コード例 #1
0
 private void OnContextMenuClosingInternal()
 {
     InContextMenu = false;
     if (IsOverflowOpen)
     {
         UIElement popupChild = _overflowPopup.TryGetChild();
         RibbonHelper.AsyncSetFocusAndCapture(
             this,
             delegate() { return(IsOverflowOpen); },
             popupChild,
             popupChild);
     }
 }