Exemplo n.º 1
0
void
Close(IWidget& wgt)
{
	Hide(wgt);
	if(const auto pCon = FetchContainerPtr(wgt))
		ClearFocusingOf(*pCon);
}
Exemplo n.º 2
0
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);
}