I am trying to create a tree where each item in the tree would have a label (header) and two clickable items (such as buttons) to do particular actions on that item. Nodes need to be populated on demand from the server. I have this working in the ASP.NET versions of the controls, but I am trying to get it done in Silverlight for comparison. To do this, I need to:
- add extra controls into each tree item
- make the tree populated dynamically
- be able to identify the containing tree item when one of the buttons is clicked
Right now, I'm stuck on the first one... I understand this is done with templates. What is the bare minimum needed to get templates working in a tree? I'm hoping for something as simple as the ASP.NET one, with a default template, and I would like it to apply the template automatically to new items loaded from the server.
If you could also point me in the right direction for the third item, I'd appreciate it... :)