Example #1
0
        public void Deserialize(RadTreeView treeView)
        {
            if (treeView == null)
            {
                return;
            }

            treeView.BeginUpdate();

            treeView.AllowDragDrop            = this.AllowDragDrop;
            treeView.AllowDrop                = this.AllowDrop;
            treeView.BackColor                = this.BackColor;
            treeView.CausesValidation         = this.CausesValidation;
            treeView.CheckBoxes               = this.CheckBoxes;
            treeView.AllowIncrementalSearch   = this.AllowIncrementalSearch;
            treeView.MultiSelect              = this.MultiSelect;
            treeView.FullRowSelect            = this.FullRowSelect;
            treeView.ItemHeight               = this.ItemHeight;
            treeView.AllowEdit                = this.LabelEdit;
            treeView.LineColor                = this.LineColor;
            treeView.LineStyle                = this.LineStyle;
            treeView.PathSeparator            = this.PathSeparator;
            treeView.ShowLines                = this.ShowLines;
            treeView.ShowExpandCollapse       = this.ShowExpandCollapse;
            treeView.ShowRootLines            = this.ShowRootLines;
            treeView.ThemeClassName           = this.ThemeClassName;
            treeView.ThemeName                = this.ThemeName;
            treeView.TreeIndent               = this.TreeIndent;
            treeView.TriStateMode             = this.TriStateMode;
            treeView.ExpandAnimation          = this.ExpandAnimation;
            treeView.AllowArbitraryItemHeight = this.AllowArbitraryItemHeight;
            treeView.SpacingBetweenNodes      = this.SpacingBetweenNodes;
            treeView.RightToLeft              = this.RightToLeft;

            treeView.Nodes.Clear();

            foreach (XmlTreeNode node in this.Nodes)
            {
                treeView.Nodes.Add(node.Deserialize());
            }

            treeView.EndUpdate();
        }