private void OnContextMenuClosingInternal() { InContextMenu = false; if (IsOverflowOpen) { UIElement popupChild = _overflowPopup.TryGetChild(); RibbonHelper.AsyncSetFocusAndCapture( this, delegate() { return(IsOverflowOpen); }, popupChild, popupChild); } }