本文整理汇总了C#中MainViewModel.OnNavigatedToAsync方法的典型用法代码示例。如果您正苦于以下问题:C# MainViewModel.OnNavigatedToAsync方法的具体用法?C# MainViewModel.OnNavigatedToAsync怎么用?C# MainViewModel.OnNavigatedToAsync使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MainViewModel
的用法示例。
在下文中一共展示了MainViewModel.OnNavigatedToAsync方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Design
public Design()
{
AddStation = new AddStationViewModel( new DesignTransportService(), new DesignLocationService(), new DesignNavigationService(), new DesignPluginSettings() );
Main = new MainViewModel( new DesignTransportService(), new DesignPluginSettings(), new DesignNavigationService(), new DesignLocationService() );
Settings = new SettingsViewModel( new DesignPluginSettings() );
AddStation.OnNavigatedToAsync();
Main.OnNavigatedToAsync();
Settings.OnNavigatedTo();
}
示例2: Design
public Design()
{
var directoryService = new DesignDirectoryService();
var person = directoryService.SearchAsync( null, CancellationToken.None ).Result.Results[0];
Main = new MainViewModel( directoryService, new DesignNavigationService(), new ViewPersonRequest( "DSLAB" ) );
Person = new PersonViewModel( new DesignBrowserService(), new DesignEmailService(), new DesignPhoneService(), new DesignContactsService(), person );
Main.OnNavigatedToAsync();
Person.OnNavigatedTo();
}
示例3: Design
public Design()
{
var newsService = new DesignNewsService();
var item = newsService.GetFeedsAsync( null, CancellationToken.None ).Result.Feeds[0].Items[0];
FeedItem = new FeedItemViewModel( new DesignDataCache(), new DesignNewsService(), new DesignBrowserService(), item );
Main = new MainViewModel( new DesignDataCache(), new DesignNewsService(), new DesignNavigationService() );
FeedItem.OnNavigatedToAsync();
Main.OnNavigatedToAsync();
}
示例4: Design
public Design()
{
var moodleService = new DesignMoodleService();
var course = moodleService.GetCoursesAsync( null, CancellationToken.None ).Result.Courses[0];
Course = new CourseViewModel( new DesignDataCache(), new DesignSecureRequestHandler(), moodleService,
new DesignMoodleDownloader(), new DesignFileStorage(), new DesignBrowserService(),
course );
Main = new MainViewModel( new DesignDataCache(), new DesignSecureRequestHandler(), new DesignNavigationService(), new DesignMoodleService() );
Course.OnNavigatedToAsync();
Main.OnNavigatedToAsync();
}
示例5: Design
public Design()
{
About = new AboutViewModel( new DesignBrowserService(), new DesignEmailService(), new DesignRatingService() );
Main = new MainViewModel( new DesignNavigationService(), new DesignServerAccess(), new DesignPluginLoader(),
new DesignMainSettings(), new DesignTileService(),
new ViewPluginRequest() );
Settings = new SettingsViewModel( new DesignMainSettings(), new DesignAuthenticator(), new DesignNavigationService(),
new DesignAuthenticationService(), new DesignCredentialsStorage(), new DesignTileService() );
About.OnNavigatedTo();
Main.OnNavigatedToAsync();
Settings.OnNavigatedTo();
}
示例6: Design
public Design()
{
var foodService = new DesignFoodService();
var meal = foodService.GetMenusAsync( null, CancellationToken.None ).Result.Menu[0].Meals[0];
Main = new MainViewModel( new DesignDataCache(), new DesignNavigationService(), new DesignFoodService(),
new DesignCredentialsStorage(), new DesignPluginSettings() );
Rating = new RatingViewModel( new DesignFoodService(), new DesignNavigationService(), new DesignDeviceIdentifier(), meal );
Settings = new SettingsViewModel( new DesignPluginSettings() );
Main.OnNavigatedToAsync();
Rating.OnNavigatedToAsync();
Settings.OnNavigatedTo();
}
示例7: Design
public Design()
{
Main = new MainViewModel( new DesignNavigationService(), new DesignSecureRequestHandler(), new DesignCamiproService() );
Main.OnNavigatedToAsync();
}
示例8: Design
public Design()
{
Main = new MainViewModel( new DesignDataCache(), new DesignNavigationService(), new DesignSecureRequestHandler(), new DesignIsAcademiaService() );
Main.OnNavigatedToAsync();
}
示例9: Design
public Design()
{
Main = new MainViewModel( new DesignDataCache(), new DesignSatelliteService() );
Main.OnNavigatedToAsync();
}