Esempio n. 1
0
 void OnHotReloaded()
 {
     _contentGridController?.Unsubscribe();
     _contentGridController = new ContentGridController(ContentGrid);
     _contentGridController.SetItemsSource(ContentDataList as List <DetailContentData>);
     _contentGridController.Subscribe();
     _contentGridController.SetFocusedContent(FocusedContent as DetailContentData);
     UpdateContentInfo();
 }
Esempio n. 2
0
 protected override void OnAppearing()
 {
     base.OnAppearing();
     _contentGridController.Subscribe();
     MessagingCenter.Subscribe <IKeyEventSender, string>(this, "KeyDown", (s, e) => { HandleKeyEvent(e); });
     MessagingCenter.Subscribe <IEventSender, string>(this, "Pop",
                                                      async(s, e) =>
     {
         await _appMainPage.PopAsync();
         Application.Current.Quit();
     });
 }