public void HandleLostFocus(EventArgs e) { _canvasViewport.FullMode = false; // UIFocusEventArgs e1 = GetFreeFocusEventArgs(); _topWinEventRoot.RootLostFocus(e1); ReleaseFocusEventArgs(e1); // PrepareRenderAndFlushAccumGraphics(); }
public void HandleGotFocus(EventArgs e) { if (_canvasViewport.IsClosed) { return; } _canvasViewport.FullMode = false; UIFocusEventArgs e1 = GetFreeFocusEventArgs(); _topWinEventRoot.RootGotFocus(e1); ReleaseFocusEventArgs(e1); // PrepareRenderAndFlushAccumGraphics(); }
void ReleaseFocusEvent(UIFocusEventArgs e) { e.Clear(); this.stockFocusEvents.Push(e); }
void IEventPortal.PortalLostFocus(UIFocusEventArgs e) { }
void ReleaseFocusEventArgs(UIFocusEventArgs e) { e.Clear(); _focusEventStack.Push(e); }
void IEventPortal.PortalLostFocus(UIFocusEventArgs e) { e.CurrentContextElement = this; }
protected virtual void OnGotKeyboardFocus(UIFocusEventArgs e) { }
void IEventPortal.PortalLostFocus(UIFocusEventArgs e) { //this.OnLostFocus(e); }
//------------------------------------------------------------ void IEventPortal.PortalGotFocus(UIFocusEventArgs e) { //this.OnGotFocus(e); }
protected virtual void OnGotFocus(UIFocusEventArgs e) { }
void IEventListener.ListenLostKeyboardFocus(UIFocusEventArgs e) { OnLostKeyboardFocus(e); _externalEventListener?.ListenLostKeyboardFocus(e); }
protected override void OnLostKeyboardFocus(UIFocusEventArgs e) { base.OnLostKeyboardFocus(e); textEditRenderElement.Blur(); }
void IEventListener.ListenGotKeyboardFocus(UIFocusEventArgs e) { OnGotKeyboardFocus(e); }
void IEventListener.ListenLostKeyboardFocus(UIFocusEventArgs e) { }
void IEventListener.ListenLostKeyboardFocus(UIFocusEventArgs e) { OnLostFocus(e); }