private void liveDetailClose()
        {
            if (_settingsFlyout != null)
            {
                var popup = _liveDetailControl.Parent as Popup;
                if (popup != null)
                    popup.IsOpen = false;
                _settingsFlyout = null;
                _liveDetailControl = null;

                emptyGrid.Width = 47;
            }
        }
        private void liveChannelGridView_ItemClick(object sender, ItemClickEventArgs e)
        {
            var item = e.ClickedItem as LiveListItem;
            if (item == null) return;

            if (LiveCenterFactoryBase.IsDirectPlay(item.ChannelInfo.LiveType))
            {
                if (IsStart(item))
                    this.Frame.Navigate(typeof(PlayPage), item);
            }
            else
            {
                if (_settingsFlyout == null)
                {
                    _settingsFlyout = new SettingsFlyout();
                    _settingsFlyout.CloseAction += liveDetailClose;
                    _liveDetailControl = new LiveDetailControl();
                    _liveDetailControl.CloseAction += liveDetailClose;
                    _liveDetailControl.HttpTimeOutOrFail += http_FailorTimeOut;
                    _settingsFlyout.ShowFlyout(_liveDetailControl, 510, false);

                    emptyGrid.Width = 510;
                }

                _liveDetailControl.SetSource(item);
            }
        }