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"; }
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); }