Exemple #1
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();


            this.borderPrimitive                     = new RibbonFormBorderPrimitive();
            this.borderPrimitive.Class               = "RibbonFormBorder";
            this.borderPrimitive.StretchVertically   = true;
            this.borderPrimitive.StretchHorizontally = true;


            this.Children.Add(this.borderPrimitive);
        }
Exemple #2
0
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     this.borderPrimitive                     = new RibbonFormBorderPrimitive();
     this.borderPrimitive.Class               = "RibbonFormBorder";
     this.borderPrimitive.StretchVertically   = true;
     this.borderPrimitive.StretchHorizontally = true;
     this.Children.Add((RadElement)this.borderPrimitive);
     this.titleBarElement                             = (RadTitleBarElement) new RadFormTitleBarElement();
     this.titleBarElement.Class                       = "TitleBar";
     this.titleBarElement.Visibility                  = ElementVisibility.Collapsed;
     this.titleBarElement.StateManager                = new RibbonFormTitleBarElementStateManager().StateManagerInstance;
     this.titleBarElement.HelpButton.StateManager     = new RibbonFormTitleBarButtonStateManager().StateManagerInstance;
     this.titleBarElement.MinimizeButton.StateManager = new RibbonFormTitleBarButtonStateManager().StateManagerInstance;
     this.titleBarElement.MaximizeButton.StateManager = new RibbonFormTitleBarButtonStateManager().StateManagerInstance;
     this.titleBarElement.CloseButton.StateManager    = new RibbonFormTitleBarButtonStateManager().StateManagerInstance;
     this.Children.Add((RadElement)this.titleBarElement);
 }