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; }
internal DefaultCloseTabCommand(BaseMetroTabControl Owner) { owner = Owner; }