void OnHotReloaded() { _contentGridController?.Unsubscribe(); _contentGridController = new ContentGridController(ContentGrid); _contentGridController.SetItemsSource(ContentDataList as List <DetailContentData>); _contentGridController.Subscribe(); _contentGridController.SetFocusedContent(FocusedContent as DetailContentData); UpdateContentInfo(); }
public ContentListPage(NavigationPage page) { InitializeComponent(); _appMainPage = page; _contentGridController = new ContentGridController(ContentGrid); SetBinding(ContentDataListProperty, new Binding(nameof(ContentListPageViewModel.ContentList))); SetBinding(FocusedContentProperty, new Binding(nameof(ContentListPageViewModel.CurrentContent))); var cacheService = DependencyService.Get <ISKBitmapCacheService>(); _skBitmapCache = cacheService.GetCache(); NavigationPage.SetHasNavigationBar(this, false); }