Esempio n. 1
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();

            this.dockLayout = new DockLayoutPanel();
            this.dockLayout.StretchHorizontally = true;
            this.dockLayout.StretchVertically   = false;

            this.label = new RadLabelElement();
            this.label.SetValue(DockLayoutPanel.DockProperty, (this.RightToLeft) ? Dock.Right : Dock.Left);
            this.label.Class    = "FooterDate";
            this.label.TextWrap = false;

            this.todayButtonElement      = new RadButtonElement();
            this.todayButtonElement.Text = "Today";
            this.todayButtonElement.SetValue(DockLayoutPanel.DockProperty, (this.RightToLeft) ? Dock.Left : Dock.Right);
            this.todayButtonElement.Margin = new Padding(5, 0, 5, 0);
            this.todayButtonElement.Click += new EventHandler(todayButtonElement_Click);

            this.clearButtonElement      = new RadButtonElement();
            this.clearButtonElement.Text = "Clear";
            this.clearButtonElement.SetValue(DockLayoutPanel.DockProperty, (this.RightToLeft) ? Dock.Left : Dock.Right);
            this.clearButtonElement.Margin     = new Padding(5, 0, 5, 0);
            this.clearButtonElement.Visibility = ElementVisibility.Visible;
            this.clearButtonElement.Click     += new EventHandler(clearButtonElement_Click);

            this.dockLayout.Children.Add(this.todayButtonElement);
            this.dockLayout.Children.Add(this.clearButtonElement);
            this.dockLayout.Children.Add(this.label);

            this.Children.Add(this.dockLayout);
        }
Esempio n. 2
0
        protected override void CreateChildItems(RadElement parent)
        {
            if (this.labelElement == null)
            {
                this.labelElement = new RadLabelElement();
            }

            this.RootElement.Children.Add(labelElement);
            base.CreateChildItems(parent);
        }
Esempio n. 3
0
        protected override void CreateChildElements()
        {
            fillPrimitive       = new FillPrimitive();
            fillPrimitive.Class = "ScreenTipFill";
            this.Children.Add(fillPrimitive);


            borderPrimitive       = new BorderPrimitive();
            borderPrimitive.Class = "ScreenTipBorder";
            this.Children.Add(borderPrimitive);

            screenTipPanel             = new StackLayoutPanel();
            screenTipPanel.Orientation = Orientation.Vertical;

            captionLabel          = new RadLabelElement();
            captionLabel.Text     = "ScreenTipCaptionText";
            captionLabel.Class    = "ScreenTipCaptionText";
            captionLabel.TextWrap = true;
            screenTipPanel.Children.Add(captionLabel);

            mainText          = new RadLabelElement();
            mainText.Text     = "ScreenTip Text";
            mainText.Class    = "ScreenTipText";
            mainText.TextWrap = true;
            screenTipPanel.Children.Add(mainText);

            footerLine           = new RadLineItem();
            footerLine.MaxSize   = new Size(0, 4);
            footerLine.Alignment = ContentAlignment.BottomCenter;
            footerLine.Class     = "ScreenTipFooterLine";
            screenTipPanel.Children.Add(footerLine);

            footerText          = new RadLabelElement();
            footerText.Text     = "ScreenTip Footer";
            footerText.Class    = "ScreenTipFooterText";
            footerText.TextWrap = true;
            screenTipPanel.Children.Add(footerText);

            this.Children.Add(screenTipPanel);

            this.footerLine.Visibility = ElementVisibility.Collapsed;
            this.footerText.Visibility = ElementVisibility.Collapsed;

            this.Items.Add(captionLabel);
            this.Items.Add(mainText);
            this.Items.Add(footerLine);
            this.Items.Add(footerText);
        }
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     this.checkBox = this.CreateCheckBoxElement();
     this.label    = this.CreateLabelElement();
     this.checkBox.ToggleStateChanging += new StateChangingEventHandler(this.checkBox_ToggleStateChanging);
     this.label.StretchHorizontally     = true;
     this.label.Margin = new Padding(1, 0, 0, 0);
     this.label.NotifyParentOnMouseInput = false;
     this.label.ShouldHandleMouseInput   = false;
     this.label.TextAlignment            = ContentAlignment.MiddleLeft;
     this.stackLayoutPanel             = new StackLayoutPanel();
     this.stackLayoutPanel.Orientation = Orientation.Horizontal;
     this.stackLayoutPanel.Children.Add((RadElement)this.checkBox);
     this.stackLayoutPanel.Children.Add((RadElement)this.label);
     this.Children.Add((RadElement)this.stackLayoutPanel);
 }
 public RadLabelElementAccessibleObject(RadLabelElement owner, string name)
     : base(owner.ElementTree.Control, name)
 {
     this.owner = owner;
 }
Esempio n. 6
0
 protected override void CreateChildItems(RadElement parent)
 {
     this.labelElement = this.CreateLabelElement();
     this.RootElement.Children.Add((RadElement)this.labelElement);
 }
Esempio n. 7
0
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     this.searchInfoLabel = this.CreateSearchInfoLabel();
 }