コード例 #1
0
ファイル: NavigationFrame.cs プロジェクト: slewis74/Slab
        private void OnUnloaded(object sender, RoutedEventArgs routedEventArgs)
        {
            if (PresentationBus == null)
            {
                return;
            }

            PresentationBus.UnSubscribe(this);
        }
コード例 #2
0
ファイル: NavigationFrame.cs プロジェクト: slewis74/Slab
        void HostCommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
        {
            if (Content == null)
            {
                return;
            }

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

            PresentationBus.PublishAsync(request);
        }
コード例 #3
0
ファイル: NavigationFrame.cs プロジェクト: slewis74/Slab
 private void SetCanGoBack()
 {
     CanGoBack = _navigationStack.Count() > 1;
     PresentationBus.PublishAsync(new CanGoBackChanged(CanGoBack));
 }