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

            if (panel != null)
            {
                if (AddTabCommand != null)
                {
                    panel.IsAddButtonEnabled = AddTabCommand.CanExecute(AddTabCommandParameter);
                }
            }
        }