Hey there. I hope this question hasn't come up before - I couldn't find it on the list of related questions.
Anyway, I'm a fairly newbie programmer (first year of a computing degree, so I know about squat), and I'm currently having a play with C# and WPF. For fun, I'm trying to create a simple music browser - to begin with, it'll just read my directory and list out the files, then launch one if you doubleclick or whatever. Anyway, I'm having trouble on how to store the TreeViewItems. I need to store it as a hierarchical design, so I can loop through or whatever and populate the Treeview once I've created all the paths, but I'm not sure of the best way to do this. Atm, I'm using TreeViewItem[][][] - an array of arrays that contain arrays, which actually seems wrong thinking about it...
thinking about it now, perhaps I should create a database, and populate the treeview from that? The only problem is, I've never done anything like that either XD.
Thanks for any help!
-Edibles