Example #1
0
 public MetroTabItem(BaseMetroTabControl OwningTabControl)
 {
     DefaultStyleKey = typeof(MetroTabItem);
     this.Unloaded += MetroTabItem_Unloaded;
     this.Loaded += MetroTabItem_Loaded;
     this.OwningTabControl = OwningTabControl;
 }
 private void MetroTabControl_TabItemClosingEvent(object sender, BaseMetroTabControl.TabItemClosingEventArgs e)
 {
     if (e.ClosingTabItem.Header.ToString().StartsWith("sizes"))
         e.Cancel = true;
 }
Example #3
0
 internal DefaultCloseTabCommand(BaseMetroTabControl Owner)
 {
     owner = Owner;
 }