コード例 #1
0
 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();
 }
コード例 #2
0
 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));
 }
コード例 #3
0
        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));
            }
        }
コード例 #4
0
        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();
        }
コード例 #5
0
 public BackstageItemEventArgs(BackstageVisualElement item)
 {
     this.item = item;
 }