Exemplo n.º 1
0
 public void HideFlyout()
 {
     _backdrop.Hide();
     _flyoutFadeOut.Begin();
     _flyoutContentPresenter.Navigate(typeof(BlankPage));
     IsFlyoutOpen = false;
     FlyoutClosed?.Invoke(null, new EventArgs());
 }
Exemplo n.º 2
0
        public void HideFlyout()
        {
            if (!IsFlyoutOpen)
            {
                return;
            }
            _backdrop.Hide();
            _flyoutFadeOut.Begin();
            _flyoutContentPresenter.Navigate(typeof(BlankPage));
            var mainControl = _contentPresenter.Content as Control;

            if (mainControl != null)
            {
                mainControl.IsEnabled = true;
            }
            IsFlyoutOpen = false;
            FlyoutClosed?.Invoke(null, new EventArgs());
        }
 private void FlyoutClosedEvent(object sender, object e)
 {
     FlyoutClosed?.Invoke(sender, null);
 }
Exemplo n.º 4
0
 protected virtual void OnFlyoutClosed() => FlyoutClosed?.Invoke(this, EventArgs.Empty);