当前位置: 首页>>代码示例>>C#>>正文


C# INavigationManager.GoBack方法代码示例

本文整理汇总了C#中INavigationManager.GoBack方法的典型用法代码示例。如果您正苦于以下问题:C# INavigationManager.GoBack方法的具体用法?C# INavigationManager.GoBack怎么用?C# INavigationManager.GoBack使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在INavigationManager的用法示例。


在下文中一共展示了INavigationManager.GoBack方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AppXViewModel

 public AppXViewModel(INavigationManager navigation)
 {
     _navigation = navigation;
     Groups = new ObservableCollection<IGroup> { new AppXHeaderGroup() };
     GoBack = new DelegateCommand(() => _navigation.GoBack());
     Load();
 }
开发者ID:quandtm,项目名称:exXAMLate,代码行数:7,代码来源:AppXViewModel.cs

示例2: ChecklistViewModel

        public ChecklistViewModel(INavigationManager  navigation)
        {
            _navigation = navigation;

            GoBack = new DelegateCommand(() => _navigation.GoBack());
            GoToAppX = new DelegateCommand(() => _navigation.NavigateTo("AppX"));
            GoToRequirements = new DelegateCommand(() => Launcher.LaunchUriAsync(new Uri("http://msdn.microsoft.com/en-us/library/windows/apps/hh694083.aspx", UriKind.Absolute)));
        }
开发者ID:quandtm,项目名称:exXAMLate,代码行数:8,代码来源:ChecklistViewModel.cs

示例3: IconViewModel

        public IconViewModel(INavigationManager navigation)
        {
            _navigation = navigation;
            GoBack = new DelegateCommand(() => _navigation.GoBack());
            Groups = new ObservableCollection<IGroup>();
            buttonGroup = new ButtonGroup("Buttons")
                {
                    Items = new ObservableCollection<string>()
                };


            Groups.Add(new ButtonAnatomyGroup());
            Groups.Add(buttonGroup);
        }
开发者ID:quandtm,项目名称:exXAMLate,代码行数:14,代码来源:IconViewModel.cs

示例4: TextStyleViewModel

        public TextStyleViewModel(INavigationManager navigation)
        {
            _navigation = navigation;
            GoBack = new DelegateCommand(() => _navigation.GoBack());

            var bg = new ButtonGroup("TextBlock Styles")
                {
                    Items = new ObservableCollection<string>()
                };

            var items = ResourceFileParser.GetKeysTargeting(@"Common\StandardStyles.xaml", "TextBlock");
            foreach (var i in items)
                bg.Items.Add(i);

            Groups = new ObservableCollection<IGroup> { bg };
        }
开发者ID:quandtm,项目名称:exXAMLate,代码行数:16,代码来源:TextStyleViewModel.cs

示例5: HammerPantsViewModel

        public HammerPantsViewModel(INavigationManager navigation)
        {
            _navigation = navigation;
            GoBack = new DelegateCommand(() => _navigation.GoBack());
            Generate = new DelegateCommand(async () =>
                {
                    var y = XDocument.Load(@"Assets\Generic.xaml");
                    var x = new Hammer.Pants.ResourceFileParser(y);
                    var newDoc = x.Update(SelectedColor.ToString());

                    var fsp = new FileSavePicker() {SuggestedFileName = "Generic.xaml"};
                    fsp.FileTypeChoices.Add("XAML Document", new List<string> { ".xaml" });
                    var file = await fsp.PickSaveFileAsync();
                    if (file == null)
                        return;
                    var stream = await file.OpenStreamForWriteAsync();
                    newDoc.Save(stream);
                });
        }
开发者ID:quandtm,项目名称:exXAMLate,代码行数:19,代码来源:HammerPantsViewModel.cs


注:本文中的INavigationManager.GoBack方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。