protected override void OnNavigatedFrom(NavigationEventArgs e) { loadingTip.Visibility = Visibility.Collapsed; _channelFactory.Cancel(); _tagFactory.Cancel(); if (e.NavigationMode == NavigationMode.Back) { _channelViewModel.Groups.PerformanceClear(); } }
private void LoadDatas(bool isLoadTag) { loadingTip.Visibility = Visibility.Collapsed; _currentPage = 0; _maxPage = 2; _channelViewModel.PerformanceClear(); _tagFactory.Cancel(); _channelFactory.Cancel(); if (isLoadTag) { _tagFactory.DownLoadDatas(_typeId, TagDimension.Catalog); } RequestDatas(); }