public void hide() { if (Visible) { if (Hiding != null) { Hiding.Invoke(this); } Visible = false; if (SmoothShow) { smoothShowPosition = 0.0f; subscribeToUpdate(); runningShowTransition = false; mainWidget.Visible = true; } else { if (Hidden != null) { Hidden.Invoke(this); } } } }
protected virtual PopupHidingEventArgs OnHiding() { var args = new PopupHidingEventArgs(); Hiding?.Invoke(this, args); return(args); }
public IAsyncAction HideAsync() { return(AsyncAction.FromTask(async ct => { CoreDispatcher.CheckThreadAccess(); UIApplication.SharedApplication.StatusBarHidden = true; Hiding?.Invoke(this, null); })); }
public IAsyncAction HideAsync() { return(AsyncAction.FromTask(async ct => { CoreDispatcher.CheckThreadAccess(); _isShown = false; UpdateSystemUiVisibility(); Hiding?.Invoke(this, null); })); }
private bool fireHiding() { CancelEventArgs cancelEvent = new CancelEventArgs(); if (Hiding != null) { Hiding.Invoke(this, cancelEvent); } return(cancelEvent.Cancel); }
private void OnIsOpenChanged() { if (IsOpen) { Showing?.Invoke(this, new CalloutEventArgs(this)); } else { Hiding?.Invoke(this, new CalloutEventArgs(this)); } }
protected virtual void OnHiding(CancelEventArgs args) { Hiding?.Invoke(this, args); }
public void MenuHide() { canvasGroup.TurnOff(); IsOn = false; Hiding?.Invoke(); }
private void OnCalloutHiding(object sender, CalloutEventArgs e) { Hiding?.Invoke(this, e); }
private void OnHiding() { Hiding?.Invoke(this, EventArgs.Empty); }