Example #1
0
 protected override void CreateChildElements()
 {
     this.leftArrow         = new RangeSelectorArrowButton();
     this.leftArrow.Class   = "LeftArrowButton";
     this.leftArrow.Click  += new EventHandler(this.leftArrow_Click);
     this.viewContainer     = new RangeSelectorViewContainer();
     this.rightArrow        = new RangeSelectorArrowButton();
     this.rightArrow.Class  = "RightArrowButton";
     this.rightArrow.Click += new EventHandler(this.rightArrow_Click);
     this.SetElementsOrder();
     this.SetHandlesVisibilityAndOrientation();
 }
Example #2
0
        protected override void CreateChildElements()
        {
            this.leftTopButton        = new RangeSelectorArrowButton();
            this.leftTopButton.Class  = "ScrollLeftArrowButton";
            this.leftTopButton.Click += new EventHandler(this.leftTopButton_Click);
            this.leftTopThumb         = new RangeSelectorScrollThumb(true);
            this.range                    = new RangeSelectorScrollRange();
            this.bottomRightThumb         = new RangeSelectorScrollThumb(false);
            this.bottomRightButton        = new RangeSelectorArrowButton();
            this.bottomRightButton.Class  = "ScrollRightArrowButton";
            this.bottomRightButton.Click += new EventHandler(this.bottomRightButton_Click);
            this.sellectionRange          = new RangeSelectorScrollSelectionRange();
            int num1 = (int)this.leftTopThumb.BindProperty(RadElement.IsMouseOverProperty, (RadObject)this.range, RadElement.IsMouseOverProperty, PropertyBindingOptions.TwoWay);
            int num2 = (int)this.leftTopThumb.BindProperty(RadElement.IsMouseDownProperty, (RadObject)this.range, RadElement.IsMouseDownProperty, PropertyBindingOptions.TwoWay);
            int num3 = (int)this.bottomRightThumb.BindProperty(RadElement.IsMouseOverProperty, (RadObject)this.range, RadElement.IsMouseOverProperty, PropertyBindingOptions.TwoWay);
            int num4 = (int)this.bottomRightThumb.BindProperty(RadElement.IsMouseDownProperty, (RadObject)this.range, RadElement.IsMouseDownProperty, PropertyBindingOptions.TwoWay);

            this.Children.Add((RadElement)this.leftTopButton);
            this.Children.Add((RadElement)this.leftTopThumb);
            this.Children.Add((RadElement)this.range);
            this.Children.Add((RadElement)this.bottomRightThumb);
            this.Children.Add((RadElement)this.sellectionRange);
            this.Children.Add((RadElement)this.bottomRightButton);
        }