예제 #1
0
        public TabItemCollection(TabHost collectionOwner)
        {
            if(collectionOwner == null) {
                throw new ArgumentNullException("collectionOwner");
            }

            owner = collectionOwner;
            innerList = new List<TabItem>();
        }
예제 #2
0
        public TabItemCollection(TabHost collectionOwner)
        {
            if (collectionOwner == null)
            {
                throw new ArgumentNullException("collectionOwner");
            }

            owner     = collectionOwner;
            innerList = new List <TabItem>();
        }
예제 #3
0
        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;
        }
예제 #4
0
        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;
        }
예제 #5
0
 public TabHostActionList(IComponent component)
     : base(component)
 {
     tabHost = component as TabHost;
     service = GetService(typeof(DesignerActionUIService)) as DesignerActionUIService;
 }
예제 #6
0
 public TabHostActionList(IComponent component)
     : base(component)
 {
     tabHost = component as TabHost;
     service = GetService(typeof(DesignerActionUIService)) as DesignerActionUIService;
 }
예제 #7
0
        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;
        }
예제 #8
0
        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;
        }