Esempio n. 1
0
 protected override void CreateChildElements()
 {
     this.itemsWrapLayoutPanel            = new WrapLayoutPanel();
     this.itemsBoxLayout                  = new StatusBarBoxLayout();
     this.itemsWrapLayoutPanel.Visibility = ElementVisibility.Collapsed;
     DockLayoutPanel.SetDock((RadElement)this.itemsWrapLayoutPanel, Dock.Right);
     this.items.Owner     = (RadElement)this.itemsBoxLayout;
     this.items.ItemTypes = new System.Type[13]
     {
         typeof(RadLabelElement),
         typeof(CommandBarSeparator),
         typeof(RadButtonElement),
         typeof(RadCheckBoxElement),
         typeof(RadImageButtonElement),
         typeof(RadProgressBarElement),
         typeof(RadRadioButtonElement),
         typeof(RadRepeatButtonElement),
         typeof(RadSplitButtonElement),
         typeof(RadStatusBarPanelElement),
         typeof(RadToggleButtonElement),
         typeof(RadTrackBarElement),
         typeof(RadWaitingBarElement)
     };
     this.fillPrimitive              = new FillPrimitive();
     this.borderPrimitive            = new BorderPrimitive();
     this.borderPrimitive.BoxStyle   = BorderBoxStyle.OuterInnerBorders;
     this.borderPrimitive.Class      = "StatusBarBorder";
     this.borderPrimitive.Width      = 2f;
     this.borderPrimitive.BackColor  = Color.DarkBlue;
     this.borderPrimitive.InnerColor = Color.White;
     this.fillPrimitive              = new FillPrimitive();
     this.fillPrimitive.ShouldUsePaintBufferState = false;
     this.fillPrimitive.Class = "StatusBarFill";
     this.Children.Add((RadElement)this.borderPrimitive);
     this.Children.Add((RadElement)this.fillPrimitive);
     this.Children.Add((RadElement)this.itemsWrapLayoutPanel);
     this.Children.Add((RadElement)this.itemsBoxLayout);
     DockLayoutPanel.SetDock((RadElement)this.itemsWrapLayoutPanel, Dock.Left);
     DockLayoutPanel.SetDock((RadElement)this.itemsBoxLayout, Dock.Left);
     this.grip = new RadGripElement();
     this.Children.Add((RadElement)this.grip);
 }
Esempio n. 2
0
        /// <summary>
        /// create elements in the RadStatusBarElement
        /// </summary>
        protected override void CreateChildElements()
        {
            this.itemsWrapLayoutPanel = new WrapLayoutPanel();
            this.itemsBoxLayout       = new StatusBarBoxLayout();
            //hide this panel by default
            this.itemsWrapLayoutPanel.Visibility = ElementVisibility.Collapsed;

            DockLayoutPanel.SetDock(itemsWrapLayoutPanel, Dock.Right);

            this.items.Owner     = this.itemsBoxLayout;
            this.items.ItemTypes = new Type[] { typeof(RadButtonElement), typeof(RadToggleButtonElement), typeof(RadRepeatButtonElement), typeof(RadCheckBoxElement), typeof(RadImageButtonElement),
                                                typeof(RadRadioButtonElement), typeof(RadLabelElement), typeof(RadProgressBarElement), typeof(RadStatusBarPanelElement), typeof(RadToolStripSeparatorItem),
                                                typeof(RadTrackBarElement), typeof(RadSplitButtonElement) };
            this.fillPrimitive = new FillPrimitive();


            this.borderPrimitive            = new BorderPrimitive();
            this.borderPrimitive.BoxStyle   = BorderBoxStyle.OuterInnerBorders;
            this.borderPrimitive.Class      = "StatusBarBorder";
            this.borderPrimitive.Width      = 2f;
            this.borderPrimitive.BackColor  = Color.DarkBlue;
            this.borderPrimitive.InnerColor = Color.White;

            this.fillPrimitive       = new FillPrimitive();
            this.fillPrimitive.Class = "StatusBarFill";



            this.Children.Add(borderPrimitive);
            this.Children.Add(fillPrimitive);

            this.Children.Add(itemsWrapLayoutPanel);
            this.Children.Add(itemsBoxLayout);

            DockLayoutPanel.SetDock(itemsWrapLayoutPanel, Dock.Left);
            DockLayoutPanel.SetDock(itemsBoxLayout, Dock.Left);

            this.grip = new RadGripElement();
            this.Children.Add(grip);
        }