public TabItemImpl(TabGroup tabGroup, ITabContent tabContent, object objStyle) { this.tabGroup = tabGroup; this.tabContent = tabContent; this.Content = tabContent.UIObject; this.theHeader = new TheHeader(this); this.DataContext = theHeader; this.Header = theHeader; this.AllowDrop = true; this.AddHandler(GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(GotKeyboardFocus2), true); this.AddHandler(LostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(LostKeyboardFocus2), true); this.SetStyle(objStyle ?? "FileTabGroupTabItemStyle"); AddEvents(); }