void Close(IWidget& wgt) { Hide(wgt); if(const auto pCon = FetchContainerPtr(wgt)) ClearFocusingOf(*pCon); }
void OnTouchDown_RequestToTopFocused(CursorEventArgs&& e) { IWidget& wgt(e.GetSender()); if(e.Strategy != RoutedEventArgs::Bubble) RequestToTop(wgt); if(e.Strategy == RoutedEventArgs::Direct) ClearFocusingOf(wgt); if(e.Strategy != RoutedEventArgs::Tunnel) RequestFocus(wgt); }