Example #1
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();

            this.searchTextBoxElement                = new ToolbarTextBoxElement();
            this.alphabeticalPropertySort            = new AlphabeticalToggleButton();
            this.categorizedAlphabeticalPropertySort = new CategorizedAlphabeticalToggleButton();

            this.alphabeticalPropertySort.MaxSize            = new Size(25, 0);
            this.categorizedAlphabeticalPropertySort.MaxSize = new Size(25, 0);

            this.alphabeticalPropertySort.MinSize            = new Size(25, 0);
            this.categorizedAlphabeticalPropertySort.MinSize = new Size(25, 0);

            this.searchTextBoxElement.StretchHorizontally                = true;
            this.alphabeticalPropertySort.StretchHorizontally            = false;
            this.categorizedAlphabeticalPropertySort.StretchHorizontally = false;

            this.alphabeticalPropertySort.Text            = String.Empty;
            this.categorizedAlphabeticalPropertySort.Text = String.Empty;

            this.Children.Add(this.alphabeticalPropertySort);
            this.Children.Add(this.categorizedAlphabeticalPropertySort);
            this.Children.Add(this.searchTextBoxElement);
            this.searchCriteria = new FilterDescriptor("Name", FilterOperator.Contains, "");

            this.WireEvents();
        }
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     this.searchTextBoxElement                         = new ToolbarTextBoxElement();
     this.alphabeticalToggleButton                     = new AlphabeticalToggleButton();
     this.categorizedToggleButton                      = new CategorizedAlphabeticalToggleButton();
     this.alphabeticalToggleButton.MaxSize             = new Size(25, 0);
     this.categorizedToggleButton.MaxSize              = new Size(25, 0);
     this.alphabeticalToggleButton.MinSize             = new Size(25, 0);
     this.categorizedToggleButton.MinSize              = new Size(25, 0);
     this.searchTextBoxElement.StretchHorizontally     = true;
     this.searchTextBoxElement.StretchVertically       = true;
     this.alphabeticalToggleButton.StretchHorizontally = false;
     this.categorizedToggleButton.StretchHorizontally  = false;
     this.alphabeticalToggleButton.Text                = string.Empty;
     this.categorizedToggleButton.Text                 = string.Empty;
     this.alphabeticalToggleButton.ImageAlignment      = ContentAlignment.MiddleCenter;
     this.categorizedToggleButton.ImageAlignment       = ContentAlignment.MiddleCenter;
     this.Children.Add((RadElement)this.alphabeticalToggleButton);
     this.Children.Add((RadElement)this.categorizedToggleButton);
     this.Children.Add((RadElement)this.searchTextBoxElement);
     this.searchCriteria = new FilterDescriptor("Label", FilterOperator.Contains, (object)"");
     this.WireEvents();
 }