Ejemplo n.º 1
0
        private void FillTabStripAlignment(RadDropDownList combo, TabStripAlignment selected)
        {
            combo.BeginUpdate();
            combo.Items.Clear();

            int counter       = 0;
            int selectedIndex = -1;

            foreach (TabStripAlignment align in Enum.GetValues(typeof(TabStripAlignment)))
            {
                RadListDataItem item = new RadListDataItem(align.ToString());
                item.Value = align;
                combo.Items.Add(item);

                if (align == selected)
                {
                    selectedIndex = counter;
                }

                counter++;
            }

            combo.SelectedIndex = selectedIndex;
            combo.EndUpdate();
        }
Ejemplo n.º 2
0
 public TabStripPanel()
 {
     this.tabPanels               = new TabPanelCollection(this);
     this.showTabStrip            = true;
     this.tabStripAlign           = this.DefaultTabStripAlignment;
     this.tabStripTextOrientation = TabStripTextOrientation.Default;
     this.Behavior.BitmapRepository.DisableBitmapCache = true;
 }