public TabItemCollection(TabHost collectionOwner) { if(collectionOwner == null) { throw new ArgumentNullException("collectionOwner"); } owner = collectionOwner; innerList = new List<TabItem>(); }
public TabItemCollection(TabHost collectionOwner) { if (collectionOwner == null) { throw new ArgumentNullException("collectionOwner"); } owner = collectionOwner; innerList = new List <TabItem>(); }
public TabHostGlyph(BehaviorService behaviorSvc, Control control, Adorner glyphAdorner, ISelectionService selectionService) : base(new TabHostBehavior()) { service = behaviorSvc; tabHost = control as TabHost; adorner = glyphAdorner; this.selectionService = selectionService; // add events selectionService.SelectionChanged += OnSelectionChanged; }
public override void Initialize(IComponent component) { base.Initialize(component); tabHost = component as TabHost; InitializeServices(); // initialize adorners adorner = new Adorner(); BehaviorService.Adorners.Add(adorner); // add glyphs hostGlyph = new TabHostGlyph(BehaviorService, tabHost, adorner, selectionService); adorner.Glyphs.Add(hostGlyph); // add add/remove tab handlers changeService.ComponentRemoved += OnComponentRemoved; }
public TabHostActionList(IComponent component) : base(component) { tabHost = component as TabHost; service = GetService(typeof(DesignerActionUIService)) as DesignerActionUIService; }