Esempio n. 1
0
        private void OnUnloaded(object sender, RoutedEventArgs routedEventArgs)
        {
            if (PresentationBus == null)
            {
                return;
            }

            PresentationBus.UnSubscribe(this);
        }
Esempio n. 2
0
        void HostCommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
        {
            if (Content == null)
            {
                return;
            }

            var viewType = Content.GetType();
            var request  = new DisplaySettingsRequest(viewType, args.Request);

            PresentationBus.PublishAsync(request);
        }
Esempio n. 3
0
 private void SetCanGoBack()
 {
     CanGoBack = _navigationStack.Count() > 1;
     PresentationBus.PublishAsync(new CanGoBackChanged(CanGoBack));
 }