protected override void UserControl_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e) { //BlackoutWindow経由のジャンプ base.UserControl_IsVisibleChanged(sender, e); if (DataListBox != null && this.IsVisible == true) { if (BlackoutWindow.HasData == true) { ItemIdx = ViewUtil.JumpToListItem(BlackoutWindow.SelectedData, DataListBox, BlackoutWindow.NowJumpTable == true ? JumpItemStyle.JumpTo : JumpItemStyle.None); } BlackoutWindow.Clear(); } }
protected override void UserControl_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e) { if (this.IsVisible == false) { return; } ReloadInfo(); SearchJumpTargetProgram(BlackoutWindow.SelectedItem); //番組表タブが一つもないときなどのゴミ掃除 Dispatcher.BeginInvoke(new Action(() => BlackoutWindow.Clear()), DispatcherPriority.Input); }
protected override void UserControl_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e) { base.UserControl_IsVisibleChanged(sender, e); if (this.IsVisible == false) { return; } if (BlackoutWindow.HasReserveData == true) { MoveToItem(BlackoutWindow.SelectedItem.ReserveInfo.ReserveID, BlackoutWindow.NowJumpTable == true ? JumpItemStyle.JumpTo : JumpItemStyle.None); } BlackoutWindow.Clear(); }
protected override void UserControl_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e) { base.UserControl_IsVisibleChanged(sender, e);//ここでタブが生成される if (this.IsVisible == true) { if (SearchJumpTargetProgram(BlackoutWindow.Create64Key()) == false) { BlackoutWindow.Clear();//見つからなかったときのゴミ掃除 } //TabItem.IsVisibleChangedは使わず、SearchJumpTargetProgram()による移動の後に実行する if (tabControl.SelectedIndex != -1) { var tab = tabControl.SelectedItem as EpgTabItem; if (tab.view == null) { tab.CreateContent(); } } } }