Exemplo n.º 1
0
        public override void CreateChildren()
        {
            this.captionElement   = this.panelBar.captionElement;
            this.panelBarOverFlow = new RadPanelBarOverFlow();

            this.grip       = new OutLookGripPrimitive();
            this.grip.Class = "PanelBarOutlookGrip";

            this.groupLayout = new OutLookStyleLayout(this.captionElement, this.panelBarOverFlow, this.grip, this.contentPanelHost);
            this.panelBar.Children.Add(this.groupLayout);
            UpdateGroupsUI();
            this.panelBar.Items.Owner = this.groupLayout;
            this.InitializeOverFlowDropDownButton();

            foreach (RadPanelBarGroupElement group in this.panelBar.Items)
            {
                if (group.verticalGroupLayout != null)
                {
                    if (group.verticalGroupLayout.Children.Contains(group.ContentPanelHost))
                    {
                        group.verticalGroupLayout.Children.Remove(group.ContentPanelHost);
                    }
                }
            }

            this.panelBarOverFlow.DropDownButton.DropDownOpening += new System.ComponentModel.CancelEventHandler(DropDownButton_DropDownOpening);
        }
Exemplo n.º 2
0
        public OutLookStyleLayout(RadPanelBarVisualElement captionElement, RadPanelBarOverFlow panelBarOverFlow, OutLookGripPrimitive grip, RadHostItem host)
        {
            this.captionElement   = captionElement;
            this.panelBarOverFlow = panelBarOverFlow;
            this.grip             = grip;
            this.host             = host;

            this.Children.Add(this.captionElement);
            this.captionElement.StretchHorizontally = true;
            this.Children.Add(this.panelBarOverFlow);
            this.Children.Add(this.grip);

            if (this.host != null)
            {
                this.Children.Add(this.host);
            }
        }