internal void AddTab() { if (AddTabCommand != null) { AddTabCommand.Execute(null); } }
private void Command_CanExecuteChanged(object sender, EventArgs e) { if (DesignerProperties.GetIsInDesignMode(this)) { return; } ((ChromeTabPanel)this.ItemsHost).IsAddButtonEnabled = AddTabCommand.CanExecute(AddTabCommandParameter); }
private void ChromeTabControl_Loaded(object sender, RoutedEventArgs e) { var panel = ItemsHost as ChromeTabPanel; if (panel != null) { if (AddTabCommand != null) { panel.IsAddButtonEnabled = AddTabCommand.CanExecute(AddTabCommandParameter); } } }