internal void RestoreIgnoreSelectionChanged_HACK(TabState tabState, bool oldValue) { var tabManager = tabState.Owner; if (!oldValue) tabManager_dontSelectHack.Remove(tabManager); else tabManager_dontSelectHack[tabManager] = oldValue; }
public void SetSelectedTab(TabState tabState) { tabControl.SelectedItem = tabState.TabItem; }
internal bool IgnoreSelectionChanged_HACK(TabState tabState) { var tabManager = tabState.Owner; bool value; tabManager_dontSelectHack.TryGetValue(tabManager, out value); tabManager_dontSelectHack[tabManager] = true; return value; }