protected override void CreateChildElements() { content = new RadApplicationMenuContentElement(); content.Layout.Orientation = Orientation.Vertical; content.Class = "AppMenuContentElement"; content.Fill.Class = "AppMenuFill"; content.Border.Class = "AppMenuBorder"; this.Children.Add(content); topContent = new RadApplicationMenuContentElement(); topContent.Layout.Orientation = Orientation.Horizontal; topContent.Class = "AppMenuTopContentElement"; topContent.Fill.Class = "AppMenuTopFill"; topContent.Border.Class = "AppMenuTopBorder"; content.Layout.Children.Add(topContent); menuElement = new RadApplicationMenuDropDownMenuElement(); topContent.Layout.Children.Add(menuElement); menuElement.Layout.Class = "AppMenuLeftLayout"; topRightContent = new RadApplicationMenuDropDownMenuElement(); topRightContent.Class = "AppMenuTopRightContentElement"; topRightContent.Fill.Class = "AppMenuRightColumnFill"; topRightContent.Border.Class = "AppMenuRightColumnBorder"; topRightContent.MinSize = new Size(this.rightColumnWidth, 0); topRightContent.Layout.MinSize = new Size(this.rightColumnWidth, 0); topRightContent.Layout.Class = "AppMenuRightLayout"; topRightContent.Layout.LeftColumnMinWidth = 0; topContent.Layout.Children.Add(topRightContent); bottomContent = new RadApplicationMenuContentElement(); bottomContent.Layout = new RadApplicationMenuBottomStripLayout(); bottomContent.Class = "AppMenuBottomContentElement"; bottomContent.Fill.Class = "AppMenuBottomFill"; bottomContent.Border.Class = "AppMenuBottomBorder"; bottomContent.Layout.Orientation = Orientation.Horizontal; bottomContent.Layout.StretchHorizontally = false; bottomContent.Layout.Alignment = ContentAlignment.MiddleRight; bottomContent.Layout.Class = "AppMenuBottomLayout"; content.Layout.Children.Add(bottomContent); menuElement.SetValue(RadDropDownMenuElement.DropDownPositionProperty, DropDownPosition.LeftContent); topRightContent.SetValue(RadDropDownMenuElement.DropDownPositionProperty, DropDownPosition.RightContent); }
protected override void CreateChildElements() { this.content = new RadApplicationMenuContentElement(); this.content.Layout.Orientation = Orientation.Vertical; this.content.Class = "AppMenuContentElement"; this.content.Fill.Class = "AppMenuFill"; this.content.Border.Class = "AppMenuBorder"; this.Children.Add((RadElement)this.content); this.topContent = new RadApplicationMenuContentElement(); this.topContent.Layout.Orientation = Orientation.Horizontal; this.topContent.Class = "AppMenuTopContentElement"; this.topContent.Fill.Class = "AppMenuTopFill"; this.topContent.Border.Class = "AppMenuTopBorder"; this.content.Layout.Children.Add((RadElement)this.topContent); this.menuElement = new RadApplicationMenuDropDownMenuElement(); this.topContent.Layout.Children.Add((RadElement)this.menuElement); this.menuElement.Layout.Class = "AppMenuLeftLayout"; this.topRightContent = new RadApplicationMenuDropDownMenuElement(); this.topRightContent.Class = "AppMenuTopRightContentElement"; this.topRightContent.Fill.Class = "AppMenuRightColumnFill"; this.topRightContent.Border.Class = "AppMenuRightColumnBorder"; this.topRightContent.MinSize = new Size(this.rightColumnWidth, 0); this.topRightContent.Layout.MinSize = new Size(this.rightColumnWidth, 0); this.topRightContent.Layout.Class = "AppMenuRightLayout"; this.topRightContent.Layout.LeftColumnMinWidth = 0; this.topRightContent.LeftColumnElement.Visibility = ElementVisibility.Hidden; this.topContent.Layout.Children.Add((RadElement)this.topRightContent); this.bottomContent = new RadApplicationMenuContentElement(); this.bottomContent.Layout = (StackLayoutPanel) new RadApplicationMenuBottomStripLayout(); this.bottomContent.Class = "AppMenuBottomContentElement"; this.bottomContent.Fill.Class = "AppMenuBottomFill"; this.bottomContent.Border.Class = "AppMenuBottomBorder"; this.bottomContent.Layout.Orientation = Orientation.Horizontal; this.bottomContent.Layout.StretchHorizontally = false; this.bottomContent.Layout.Alignment = ContentAlignment.MiddleRight; this.bottomContent.Layout.Class = "AppMenuBottomLayout"; this.content.Layout.Children.Add((RadElement)this.bottomContent); int num1 = (int)this.menuElement.SetValue(RadDropDownMenuElement.DropDownPositionProperty, (object)DropDownPosition.LeftContent); int num2 = (int)this.topRightContent.SetValue(RadDropDownMenuElement.DropDownPositionProperty, (object)DropDownPosition.RightContent); }