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()); }
public static IllustrationSortOptionWrapper GetAppSettingDefaultSortOptionWrapper() { return(LocalizedBoxHelper.Of <IllustrationSortOption, IllustrationSortOptionWrapper>(App.AppViewModel.AppSetting.DefaultSortOption)); }