本文整理汇总了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();
}
示例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)));
}
示例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);
}
示例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 };
}
示例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);
});
}