[K/3Cloud] 如何代码中动态设置当前活动页签
this.GetControl<TabControl>(key).SelectedIndex=目标Index
Ps:如下方式隐藏页签:
this.View.GetControl("FTab1_P").Visible = false;要触发TabItemSelectedChange事件,还要设置下
this.View.GetControl<TabControl>("FBillList").SetFireSelChanged(true);
控制页签控件TabControl的页签切换,如下代码:
this.View.GetControl<TabControl>(Key).SelectedIndex = 1;