コード例 #1
0
        protected override void CreateChildElements()
        {
            this.headerElement = this.CreateHeaderElement();
            this.headerElement.HeaderButtonElement.Click += new EventHandler(this.OnHeaderButtonClick);
            this.layoutElement = this.CreateLayoutElement();
            int num1 = (int)this.HeaderElement.BindProperty(CollapsiblePanelHeaderElement.ExpandDirectionProperty, (RadObject)this, RadCollapsiblePanelElement.ExpandDirectionProperty, PropertyBindingOptions.TwoWay);
            int num2 = (int)this.HeaderElement.BindProperty(CollapsiblePanelHeaderElement.IsExpandedProperty, (RadObject)this, RadCollapsiblePanelElement.IsExpandedProperty, PropertyBindingOptions.TwoWay);
            int num3 = (int)this.LayoutElement.BindProperty(CollapsiblePanelLayoutElement.ExpandDirectionProperty, (RadObject)this, RadCollapsiblePanelElement.ExpandDirectionProperty, PropertyBindingOptions.TwoWay);
            int num4 = (int)this.LayoutElement.BindProperty(CollapsiblePanelLayoutElement.IsExpandedProperty, (RadObject)this, RadCollapsiblePanelElement.IsExpandedProperty, PropertyBindingOptions.TwoWay);
            int num5 = (int)this.HeaderElement.HeaderButtonElement.BindProperty(CollapsiblePanelButtonElement.ExpandDirectionProperty, (RadObject)this, RadCollapsiblePanelElement.ExpandDirectionProperty, PropertyBindingOptions.TwoWay);
            int num6 = (int)this.HeaderElement.HeaderButtonElement.BindProperty(CollapsiblePanelButtonElement.IsExpandedProperty, (RadObject)this, RadCollapsiblePanelElement.IsExpandedProperty, PropertyBindingOptions.TwoWay);

            this.Children.Add((RadElement)this.layoutElement);
            this.Children.Add((RadElement)this.headerElement);
        }
コード例 #2
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
            this.StretchHorizontally = this.StretchVertically = true;
            this.Padding             = new Padding(4);
            this.headerElement       = new CollapsiblePanelHeaderElement();
            int num1 = (int)this.headerElement.HeaderTextElement.BindProperty(RadItem.TextProperty, (RadObject)this, RadItem.TextProperty, PropertyBindingOptions.TwoWay);
            int num2 = (int)this.headerElement.BindProperty(CollapsiblePanelHeaderElement.IsExpandedProperty, (RadObject)this, LayoutControlGroupItem.IsExpandedProperty, PropertyBindingOptions.TwoWay);
            int num3 = (int)this.headerElement.HeaderButtonElement.BindProperty(CollapsiblePanelButtonElement.IsExpandedProperty, (RadObject)this, LayoutControlGroupItem.IsExpandedProperty, PropertyBindingOptions.TwoWay);

            this.containerElement            = this.CreateContainerElement();
            this.containerElement.Class      = "LayoutControlGroupContainer";
            this.containerElement.DrawBorder = false;
            this.Children.Add((RadElement)this.headerElement);
            this.Children.Add((RadElement)this.containerElement);
            this.headerElement.HeaderButtonElement.MouseUp += new MouseEventHandler(this.headerElement_MouseUp);
        }