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); }
public override void ItemStateChanged(RadItem senderItem, RadPropertyChangedEventArgs changeArgs) { TreeNodeExpanderItem expanderItem = senderItem as TreeNodeExpanderItem; if (changeArgs != null && !expanderItem.Enabled) { if (expanderItem.Expanded) { this.SetItemState(senderItem, "Disabled" + ItemStateManagerBase.stateDelimiter + "IsExpanded"); return; } } base.ItemStateChanged(senderItem, changeArgs); }
public override void ItemStateChanged( RadObject senderItem, RadPropertyChangedEventArgs changeArgs) { TreeNodeExpanderItem nodeExpanderItem = senderItem as TreeNodeExpanderItem; if (changeArgs != (RadPropertyChangedEventArgs)null && !nodeExpanderItem.Enabled && nodeExpanderItem.Expanded) { this.SetItemState(senderItem, "Disabled" + (object)'.' + "IsExpanded"); } else { base.ItemStateChanged(senderItem, changeArgs); } }