Esempio n. 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());
 }
Esempio n. 2
0
 public override void Prepare(NavigationEventArgs navigationEventArgs)
 {
     PrivacyPolicyComboBox.SelectedItem = PrivacyPolicyComboBoxPublicItem;
     SortOptionComboBox.SelectedItem    = MakoHelper.GetAppSettingDefaultSortOptionWrapper();
     EventChannel.Default.Subscribe <MainPageFrameNavigatingEvent>(() => IllustrationContainer.ViewModel.FetchEngine?.Cancel());
 }
Esempio n. 3
0
 public override void OnPageActivated(NavigationEventArgs navigationEventArgs)
 {
     PrivacyPolicyComboBox.SelectedItem = PrivacyPolicyComboBoxPublicItem;
     SortOptionComboBox.SelectedItem    = MakoHelper.GetAppSettingDefaultSortOptionWrapper();
     WeakReferenceMessenger.Default.Register <BookmarksPage, MainPageFrameNavigatingEvent>(this, (recipient, _) => recipient.IllustrationContainer.ViewModel.FetchEngine?.Cancel());
 }
Esempio n. 4
0
 public override void OnPageActivated(NavigationEventArgs navigationEventArgs)
 {
     SortOptionComboBox.SelectedItem = MakoHelper.GetAppSettingDefaultSortOptionWrapper();
     ChangeSource((IFetchEngine <Illustration>)navigationEventArgs.Parameter);
     WeakReferenceMessenger.Default.Register <SearchResultsPage, MainPageFrameNavigatingEvent>(this, (recipient, _) => recipient.IllustrationContainer.ViewModel.FetchEngine?.Cancel());
 }