TreeNode Forms to WPF conversion

11,147

Solution 1

It is TreeViewItem.

Solution 2

TreeNode has been replaced with TreeViewItem.

TreeNode.Text is equivalent to TreeViewItem.Header

TreeNode.Nodes is equivalent to TreeViewItem.Items

Share:
11,147
Krill
Author by

Krill

Updated on June 09, 2022

Comments

  • Krill
    Krill almost 2 years

    I have been given 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?

  • Krill
    Krill about 14 years
    I would like to add that this is the best conversion we have but, the functionality is not exact. Or I should say the way you go about doing things isn't the same but has more or less the same outcome.
  • Haapavuo
    Haapavuo over 9 years
    I hope you could upvote this so I can give answers again. Thanks.
  • IceCode
    IceCode over 5 years
    This is awsome!