When I create a list box in WPF, I often set its ItemsSource as List. Is there a tree for TreeView (or what happens in ItemsSource for TreeView)?
Is there a compilation or generally accepted method for processing tree data in C # .NET?
What you want to do is bind a collection of hierarchical objects to a tree view using a hierarchical data template.
I wrote a blog post on this very issue, check it out,
Display hierarchical data using WPF tree view control
Nothing is built, as far as I know. Usually I do something like this:
class User { string Name { get; set; } List<User> { get; set; } }
You can then use this to bind to your hierarchical management, such as TreeView.
Of course, data can bind a source to a WPF TreeView instance. Here are a few blogs and sample posts by topic
TreeView
There is an open source project that was originally Wintellect , found here called PowerCollections . Maybe there is something that can help you?
Hope this helps, Regards, Tom.
You might want to look at the XML binding via XLinq to your tree structure, for example here: http://social.msdn.microsoft.com/forums/en-US/wpf/thread/02a47e46-12e9-45fb-af18-4511f2212acb/ and here: http://www.beacosta.com/blog/?p=50 .
Source: https://habr.com/ru/post/1298934/More articles:Adding a search / filter to the list of forests. Gsp - grailsIs there a secure cryptographic algorithm in which encryption and decryption can be in any order? - cryptographyos.walk () python: xml directory structure representation, recursion - pythonSQL - merging two separate sql queries - sqlIntensive file I / O and data processing in C # - multithreadinghttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1298935/using-a-java-class-to-create-a-database&usg=ALkJrhgS4ivnUQvYsPw0vjrUzGJMP7IS4AActiveRecord and Oracle bind variables - oraclehttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1298937/setting-decorators-to-zendformelementcheckbox&usg=ALkJrhixc5qwbFtyr8kAMkVTah-KElSMlACreate a jQuery modal block that appears next to the trigger action - javascriptSafari WIndows and transparent flash - actionscriptAll Articles