Beispiel #1
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
            this.linesElement = new TreeNodeLinesContainer();
            this.Children.Add((RadElement)this.linesElement);
            this.expanderElement = new TreeNodeExpanderItem();
            int num1 = (int)this.expanderElement.BindProperty(TreeNodeExpanderItem.IsSelectedProperty, (RadObject)this, TreeNodeElement.IsSelectedProperty, PropertyBindingOptions.OneWay);
            int num2 = (int)this.expanderElement.BindProperty(TreeNodeExpanderItem.HotTrackingProperty, (RadObject)this, TreeNodeElement.HotTrackingProperty, PropertyBindingOptions.OneWay);

            this.Children.Add((RadElement)this.expanderElement);
            this.imageElement                     = new TreeNodeImageElement();
            this.imageElement.ClipDrawing         = true;
            this.imageElement.StretchHorizontally = false;
            this.Children.Add((RadElement)this.imageElement);
            this.contentElement = this.CreateContentElement();
            int num3  = (int)this.contentElement.BindProperty(TreeNodeContentElement.IsRootNodeProperty, (RadObject)this, TreeNodeElement.IsRootNodeProperty, PropertyBindingOptions.OneWay);
            int num4  = (int)this.contentElement.BindProperty(TreeNodeContentElement.HasChildrenProperty, (RadObject)this, TreeNodeElement.HasChildrenProperty, PropertyBindingOptions.OneWay);
            int num5  = (int)this.contentElement.BindProperty(TreeNodeContentElement.IsControlInactiveProperty, (RadObject)this, TreeNodeElement.IsControlInactiveProperty, PropertyBindingOptions.OneWay);
            int num6  = (int)this.contentElement.BindProperty(TreeNodeContentElement.FullRowSelectProperty, (RadObject)this, TreeNodeElement.FullRowSelectProperty, PropertyBindingOptions.OneWay);
            int num7  = (int)this.contentElement.BindProperty(TreeNodeContentElement.IsSelectedProperty, (RadObject)this, TreeNodeElement.IsSelectedProperty, PropertyBindingOptions.OneWay);
            int num8  = (int)this.contentElement.BindProperty(TreeNodeContentElement.IsCurrentProperty, (RadObject)this, TreeNodeElement.IsCurrentProperty, PropertyBindingOptions.OneWay);
            int num9  = (int)this.contentElement.BindProperty(TreeNodeContentElement.HotTrackingProperty, (RadObject)this, TreeNodeElement.HotTrackingProperty, PropertyBindingOptions.OneWay);
            int num10 = (int)this.contentElement.BindProperty(TreeNodeContentElement.IsExpandedProperty, (RadObject)this, TreeNodeElement.IsExpandedProperty, PropertyBindingOptions.OneWay);

            this.Children.Add((RadElement)this.contentElement);
        }
Beispiel #2
0
        protected virtual TreeNodeContentElement CreateContentElement()
        {
            TreeNodeContentElement nodeContentElement = new TreeNodeContentElement();

            nodeContentElement.ShouldHandleMouseInput = false;
            return(nodeContentElement);
        }