/// <summary> /// Creates child elements. /// </summary> protected override void CreateChildElements() { this.overFlowPrimitive = new OverflowPrimitive(ArrowDirection.Down); this.overFlowPrimitive.AutoSizeMode = RadAutoSizeMode.FitToAvailableSize; this.overFlowPrimitive.AutoSize = false; this.overFlowPrimitive.Alignment = ContentAlignment.BottomLeft; this.overFlowPrimitive.Class = "overFlowButton"; this.fillPrimitive = new FillPrimitive(); this.fillPrimitive.Class = "overFlowButtonFill"; this.borderPrimitive = new BorderPrimitive(); this.borderPrimitive.Class = "overFlowBorder"; this.borderPrimitive.AutoSizeMode = RadAutoSizeMode.FitToAvailableSize; this.borderPrimitive.Visibility = ElementVisibility.Hidden; this.hiddenItems = new HiddenItemsPrimitive(); this.hiddenItems.AutoSizeMode = RadAutoSizeMode.WrapAroundChildren; this.hiddenItems.AutoSize = true; this.hiddenItems.Class = "OverFlowArrows"; this.hiddenItems.Visibility = ElementVisibility.Hidden; this.hiddenItems.BackColor = Color.White; this.hiddenItems.BackColor2 = Color.Black; this.Children.Add(this.fillPrimitive); this.Children.Add(this.borderPrimitive); this.Children.Add(this.hiddenItems); this.Children.Add(this.overFlowPrimitive); }
protected override void CreateChildElements() { this.fill = new FillPrimitive(); this.fill.Class = "overFlowButtonFill"; this.Children.Add((RadElement)this.fill); this.border = new BorderPrimitive(); this.border.Class = "overFlowBorder"; this.Children.Add((RadElement)this.border); this.hiddenItems = new HiddenItemsPrimitive(); this.hiddenItems.Class = "OverFlowArrows"; this.hiddenItems.Visibility = ElementVisibility.Hidden; this.Children.Add((RadElement)this.hiddenItems); this.overFlowPrimitive = new OverflowPrimitive(ArrowDirection.Down); this.overFlowPrimitive.Class = "overFlowButton"; this.overFlowPrimitive.MinSize = new Size(6, 7); this.Children.Add((RadElement)this.overFlowPrimitive); }