Пример #1
0
 void OnHotReloaded()
 {
     _contentGridController?.Unsubscribe();
     _contentGridController = new ContentGridController(ContentGrid);
     _contentGridController.SetItemsSource(ContentDataList as List <DetailContentData>);
     _contentGridController.Subscribe();
     _contentGridController.SetFocusedContent(FocusedContent as DetailContentData);
     UpdateContentInfo();
 }
Пример #2
0
        public async Task <bool> HandleUrl(string url)
        {
            await _contentListLoaded.Task;
            var contentList = (List <DetailContentData>)ContentDataList;
            var data        = contentList?.Find(content => content.Source.Equals(url));

            if (data == null)
            {
                return(false);
            }

            (BindingContext as ContentListPageViewModel)?.DeactivateCommand.Execute(null);
            _contentGridController.SetFocusedContent(data);
            SelectContent(data);
            return(true);
        }