Beispiel #1
0
        /// <summary>
        /// Called when this Page is shown. Triggers any OnShow events that have been set.
        /// </summary>
        public void OnShow()
        {
            Visible = true;

            if (OnShowEvent != null)
            {
                OnShowEvent.Invoke();
            }

            HideOverlay();
        }
Beispiel #2
0
        /// <summary>
        /// Called when this Page is hidden. Triggers any OnHide events that have been set.
        /// </summary>
        public void OnHide()
        {
            Visible = false;

            if (OnHideEvent != null)
            {
                OnHideEvent.Invoke();
            }

            if (_pagedRect.ShowPagePreviews)
            {
                ShowOverlay();
            }
        }
 public static void RevokeEvent(object parameter)
 {
     PageEvent?.Invoke(parameter);
     Logger.ConsoleLogger.Log((string)parameter);
 }