Index: Core/Common/src/Core.Common.Controls.TreeView/TreeNodeInfo.cs =================================================================== diff -u -rb8686fd8e20f2df910d5e291d9dcff0ed587cece -rfc13ee43a29e33da4fdbc6032145c4f519f97993 --- Core/Common/src/Core.Common.Controls.TreeView/TreeNodeInfo.cs (.../TreeNodeInfo.cs) (revision b8686fd8e20f2df910d5e291d9dcff0ed587cece) +++ Core/Common/src/Core.Common.Controls.TreeView/TreeNodeInfo.cs (.../TreeNodeInfo.cs) (revision fc13ee43a29e33da4fdbc6032145c4f519f97993) @@ -32,6 +32,32 @@ /// The object parameter holds the wrapped data of the tree node. /// public Func Image { get; set; } + + /// + /// Gets or sets a function for obtaining child node objects. + /// The object parameter holds the wrapped data of the tree node. + /// + public Func ChildNodeObjects { get; set; } + + /// + /// Gets or sets a function for checking whether or not the tree node can be renamed. + /// The object parameter holds the wrapped data of the tree node. + /// + public Func CanRename { get; set; } + + /// + /// Gets or sets an action for obtaining the logic to perform after renaming the tree node. + /// The object parameter holds the wrapped data of the tree node. + /// The string parameter holds the new name of the tree node. + /// + public Action OnNodeRenamed { get; set; } + + /// + /// Gets or sets an action for obtaining the logic to perform after checking or unchecking the tree node. + /// The object parameter holds the wrapped data of the tree node. + /// The bool parameter holds the new checked state of the tree node. + /// + public Action OnNodeChecked { get; set; } } /// @@ -72,6 +98,32 @@ public Func Image { get; set; } /// + /// Gets or sets a function for obtaining child node objects. + /// The parameter holds the wrapped data of the tree node. + /// + public Func ChildNodeObjects { get; set; } + + /// + /// Gets or sets a function for checking whether or not the tree node can be renamed. + /// The parameter holds the wrapped data of the tree node. + /// + public Func CanRename { get; set; } + + /// + /// Gets or sets an action for obtaining the logic to perform after renaming the tree node. + /// The parameter holds the wrapped data of the tree node. + /// The string parameter holds the new name of the tree node. + /// + public Action OnNodeRenamed { get; set; } + + /// + /// Gets or sets an action for obtaining the logic to perform after checking or unchecking the tree node. + /// The parameter holds the wrapped data of the tree node. + /// The bool parameter holds the new checked state of the tree node. + /// + public Action OnNodeChecked { get; set; } + + /// /// This operator converts a into a . /// /// The to convert. @@ -82,7 +134,11 @@ { TagType = treeNodeInfo.TagType, Text = tag => treeNodeInfo.Text((TData) tag), - Image = tag => treeNodeInfo.Image((TData) tag) + Image = tag => treeNodeInfo.Image((TData) tag), + ChildNodeObjects = tag => treeNodeInfo.ChildNodeObjects((TData) tag), + CanRename = tag => treeNodeInfo.CanRename((TData) tag), + OnNodeRenamed = (tag, name) => treeNodeInfo.OnNodeRenamed((TData) tag, name), + OnNodeChecked = (tag, checkedState) => treeNodeInfo.OnNodeChecked((TData) tag, checkedState) }; } }