TreeNode Forms to WPF conversion
I have been give开发者_如何转开发n the task of converting a forms application to WPF. The application used TreeNode
which is from System.Windows.Forms.TreeView
. I know WPF has TreeView
but I can't find TreeNode
is there a direct conversion for it from Forms to WPF?
TreeNode
has been replaced with TreeViewItem
.
TreeNode.Text
is equivalent to TreeViewItem.Header
TreeNode.Nodes
is equivalent to TreeViewItem.Items
It is TreeViewItem.
精彩评论