Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 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();
 }