Пример #1
0
 public override void OnPageActivated(NavigationEventArgs navigationEventArgs)
 {
     SortOptionComboBox.SelectedItem     = MakoHelper.GetAppSettingDefaultSortOptionWrapper();
     RankOptionComboBox.SelectedItem     = LocalizedBoxHelper.Of <RankOption, RankOptionWrapper>(RankOption.Day);
     RankDateTimeCalendarDatePicker.Date = DateTime.Now.AddDays(-2);
     WeakReferenceMessenger.Default.Register <RankingsPage, MainPageFrameNavigatingEvent>(this, (recipient, _) => recipient.IllustrationContainer.ViewModel.FetchEngine?.Cancel());
 }
Пример #2
0
 public static IllustrationSortOptionWrapper GetAppSettingDefaultSortOptionWrapper()
 {
     return(LocalizedBoxHelper.Of <IllustrationSortOption, IllustrationSortOptionWrapper>(App.AppViewModel.AppSetting.DefaultSortOption));
 }