예제 #1
0
        protected override void CreateChildElements()
        {
            this.textElement     = new PropertyGridGroupTextElement();
            this.expanderElement = new PropertyGridGroupExpanderElement();

            this.SuspendLayout();
            this.Children.Add(expanderElement);
            this.Children.Add(textElement);
            this.ResumeLayout(true);

            this.textElement.DrawBorder    = true;
            this.textElement.DrawFill      = true;
            this.textElement.TextAlignment = ContentAlignment.MiddleLeft;

            this.expanderElement.ExpanderItem.Class = "PropertyGridGroupExpanderItem";
        }
예제 #2
0
 protected override void CreateChildElements()
 {
     this.textElement                        = new PropertyGridGroupTextElement();
     this.expanderElement                    = new PropertyGridGroupExpanderElement();
     this.stack                              = new StackLayoutElement();
     this.stack.FitInAvailableSize           = true;
     this.stack.StretchHorizontally          = true;
     this.stack.StretchVertically            = true;
     this.stack.NotifyParentOnMouseInput     = true;
     this.stack.ShouldHandleMouseInput       = false;
     this.stack.FitToSizeMode                = RadFitToSizeMode.FitToParentBounds;
     this.textElement.DrawBorder             = true;
     this.textElement.DrawFill               = true;
     this.textElement.TextAlignment          = ContentAlignment.MiddleLeft;
     this.expanderElement.ExpanderItem.Class = "PropertyGridGroupExpanderItem";
     this.stack.Children.Add((RadElement)this.expanderElement);
     this.stack.Children.Add((RadElement)this.textElement);
     this.Children.Add((RadElement)this.stack);
 }