void ITopWindowEventRoot.RootLostFocus() { UIFocusEventArgs e = GetFreeFocusEvent(); _iTopBoxEventPortal.PortalLostFocus(e); ReleaseFocusEvent(e); }
void ReleaseFocusEvent(UIFocusEventArgs e) { e.Clear(); _stockFocusEvents.Push(e); }
//------------------------------------------------------------ void IEventPortal.PortalGotFocus(UIFocusEventArgs e) { //this.OnGotFocus(e); }
void IEventPortal.PortalLostFocus(UIFocusEventArgs e) { //this.OnLostFocus(e); }
void IEventListener.ListenLostKeyboardFocus(UIFocusEventArgs e) { OnLostFocus(e); }
protected Task OnFocus(UIFocusEventArgs args) { isFocused = true; //StateHasChanged(); return(Task.CompletedTask); }
protected async Task OnShowDatepickerAsync(UIFocusEventArgs eventArgs) { await JS.ShowDatePickerAsync("dp"); }
void IEventListener.ListenLostKeyboardFocus(UIFocusEventArgs e) { OnLostKeyboardFocus(e); _externalEventListener?.ListenLostKeyboardFocus(e); }
void IEventListener.ListenGotKeyboardFocus(UIFocusEventArgs e) { OnGotKeyboardFocus(e); }
protected void SetDisabled(UIFocusEventArgs args, Property property) { SetState(property, true); }
public void ListenLostKeyboardFocus(UIFocusEventArgs e) { }
protected virtual void OnGotKeyboardFocus(UIFocusEventArgs e) { }
protected Task OnBlur(UIFocusEventArgs args) { isFocused = false; //StateHasChanged(); return(Task.CompletedTask); }
public virtual void PauseGame(UIFocusEventArgs args) { IsPaused = true; }
protected override void OnLostKeyboardFocus(UIFocusEventArgs e) { base.OnLostKeyboardFocus(e); textEditRenderElement.Blur(); }
public virtual void ResumeGame(UIFocusEventArgs args) { IsPaused = false; }
void IEventListener.ListenLostKeyboardFocus(UIFocusEventArgs e) { OnLostKeyboardFocus(e); }
void IEventPortal.PortalLostFocus(UIFocusEventArgs e) { e.CurrentContextElement = this; }
protected virtual void OnGotFocus(UIFocusEventArgs e) { }
public static void SetEventInfo(this UIFocusEventArgs e, UIEventName eventName) { e._evName = eventName; }