void GrabFocus(Focusable focusable, Focusable willTakeFocusFrom, FocusChangeDirection direction) { using (FocusEvent e = FocusEvent.GetPooled(focusable, willTakeFocusFrom, direction, this)) { focusable.SendEvent(e); } }
static void GrabFocus(Focusable focusable, Focusable willTakeFocusFrom, FocusChangeDirection direction) { using (FocusEvent e = FocusEvent.GetPooled(focusable, willTakeFocusFrom, direction)) { UIElementsUtility.eventDispatcher.DispatchEvent(e, null); } }