コード例 #1
0
        public void InitializeOverflowDropDown(RadTabStripElement tabStripElement, LayoutPanel parent)
        {
            this.items               = tabStripElement.Items;
            this.tabStripElement     = tabStripElement;
            this.items.ItemsChanged += new ItemChangedDelegate(items_ItemsChanged);


            this.dropDownButton = new RadDropDownButtonElement();
            dropDownButton.SetValue(TabLayoutPanel.IsDropDownButtonProperty, true);
            this.DropDownButton.DropDownOpening += new CancelEventHandler(button_DropDownShowing);
            this.DropDownButton.Text             = "";
            this.DropDownButton.ZIndex           = 9000;

            CollapseActionButtonBorder();
            this.DropDownButton.MouseDown += new MouseEventHandler(DropDownButton_MouseDown);

            this.dropDownButton.MinSize                    = new Size(20, 20);
            this.dropDownButton.ArrowButton.MinSize        = new Size(20, 20);
            this.dropDownButton.ArrowButton.Arrow.AutoSize = true;
            this.dropDownButton.Visibility                 = ElementVisibility.Hidden;
            parent.Children.Add(this.dropDownButton);

            if (parent as TabLayoutPanel != null)
            {
                (parent as TabLayoutPanel).DropDownButton = this.dropDownButton;
            }
        }
コード例 #2
0
 public TabStripElementScrolling(RadTabStripElement tabStripElement)
 {
     this.tabStripElement = tabStripElement;
     tabStripElement.RadPropertyChanged += new RadPropertyChangedEventHandler(tabStripElement_RadPropertyChanged);
 }