protected override void CreateChildElements() { this.StretchHorizontally = true; this.StretchVertically = true; this.GradientStyle = GradientStyles.Solid; this.headerItem = new BackstageVisualElement(); this.headerItem.DrawText = false; this.headerItem.DrawFill = true; this.headerItem.MinSize = new Size(0, 3); this.headerItem.Class = "BackstageViewHeader"; this.Children.Add((RadElement)this.headerItem); this.titleBarElement = new RadTitleBarElement(); this.titleBarElement.Class = "TitleBar"; this.titleBarElement.TitlePrimitive.Alignment = ContentAlignment.MiddleCenter; this.titleBarElement.Close += new TitleBarSystemEventHandler(this.titleBarElement_Close); this.titleBarElement.Minimize += new TitleBarSystemEventHandler(this.titleBarElement_Minimize); this.titleBarElement.MaximizeRestore += new TitleBarSystemEventHandler(this.titleBarElement_MaximizeRestore); this.Children.Add((RadElement)this.titleBarElement); this.itemsElement = new BackstageItemsPanelElement(this); this.itemsElement.DrawFill = true; this.Children.Add((RadElement)this.itemsElement); this.contentElement = new BackstageContentPanelElement(); this.contentElement.DrawFill = true; this.Children.Add((RadElement)this.contentElement); base.CreateChildElements(); }
protected internal virtual void OnItemClicked(BackstageVisualElement backstageItem) { this.currentItem = (RadItem)backstageItem; this.currentIndex = this.Items.IndexOf((RadItem)backstageItem); this.ResetIsCurrentProperties(); if (this.ItemClicked == null) { return; } this.ItemClicked((object)this, new BackstageItemEventArgs(backstageItem)); }
internal virtual void OnItemClicked(BackstageVisualElement backstageItem) { this.currentItem = backstageItem; this.currentIndex = this.Items.IndexOf(backstageItem); this.ResetIsCurrentProperties(); if (this.ItemClicked != null) { this.ItemClicked(this, new BackstageItemEventArgs(backstageItem)); } }
protected override void CreateChildElements() { this.StretchHorizontally = true; this.StretchVertically = true; this.GradientStyle = GradientStyles.Solid; this.headerItem = new BackstageVisualElement(); this.headerItem.DrawText = false; this.headerItem.DrawFill = true; this.headerItem.MinSize = new Size(0, 3); this.headerItem.Class = "BackstageViewHeader"; this.Children.Add(headerItem); this.itemsElement = new BackstageItemsPanelElement(this); this.itemsElement.DrawFill = true; this.Children.Add(itemsElement); this.contentElement = new BackstageContentPanelElement(); this.contentElement.DrawFill = true; this.Children.Add(contentElement); base.CreateChildElements(); }
public BackstageItemEventArgs(BackstageVisualElement item) { this.item = item; }