Example #1
0
 public void SetTab(string tab)
 {
     CurrentTab = Tabs[tab];
     foreach (var pair in Tabs)
     {
         bool isTab = pair.Key == tab;
         pair.Value.IsVisible        = isTab;
         pair.Value.Button.IsToggled = isTab;
     }
     CurrentTab.Select();
     Layout.SetComponentPosition(Tabs[tab], 0, 1, Layout.Cols, Layout.Rows - 1);
     Layout.UpdateSizes();
 }
Example #2
0
 private void SetTab(int tabIndex)
 {
     CurrentTab = MainTabLayout.GetTabAt(tabIndex);
     CurrentTab.Select();
 }