Example #1
0
        protected override void OnNavigatedFrom(NavigationEventArgs e)
        {
            ShareUtils.ShareInfo = null;

            foreach (var downInfo in _downloadList)
            {
                downInfo.IsSelected = false;
            }

            _channelDetailFactory.Cancel();
            _downloadList.Clear();
            BottomAppBar.IsOpen    = false;
            downloadBar.Visibility = Visibility.Collapsed;
            (channelListView.RenderTransform as Windows.UI.Xaml.Media.CompositeTransform).TranslateX = 0;
        }
Example #2
0
        public override void End()
        {
            _channelDetailFactory.Cancel();
            _playInfoFactory.Cancel();

            if (_playInfo == null ||
                _playInfo.ChannelDetailInfo == null ||
                _playInfo.ChannelDetailInfo.ProgramInfos == null ||
                _playInfo.ChannelDetailInfo.ProgramInfos.Count <= 0)
            {
                return;
            }

            base.End();
        }