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