Example #1
0
        protected void SetTabButtonsEnabled()
        {
            foreach (var kvp in Tabs)
            {
                kvp.Value.IsEnabled  = true;
                kvp.Value.Visibility = Visibility.Visible;
            }
            const ToggleButtonType initTab = ToggleButtonType.DashboardButton;

            _lastSelected           = initTab;
            Tabs[initTab].IsChecked = true;
            OnTabSelected(initTab);
        }
        protected override void OnTabSelected(ToggleButtonType tabType)
        {
            var tabName = tabType.ToString();

            foreach (TabItem tab in MainTabs.Items)
            {
                if (tabName.Contains(tab.Name))
                {
                    MainTabs.SelectedItem = tab;
                    break;
                }
            }
        }
Example #3
0
 protected abstract void OnTabSelected(ToggleButtonType tabType);