If it walks like a duck and talks like a duck, it must be a ... TreeGrid! [A simple, XAML-only TreeGrid UI for WPF]
**
This blog has moved to a new location and comments have been disabled.
All old posts, new posts, and comments can be found on The blog of dlaa.me.
See you there!
Comments
Anonymous
April 16, 2010
Hi David, I enjoyed reading your article and learned a lot from it. I addressed the problem you raised regarding the use of different templates for each level on my blog, here http://blogs.microsoft.co.il/blogs/davids/archive/2010/04/17/hierarchical-grid-with-wpf.aspx Comments are welcome DavidAnonymous
April 17, 2010
David, Great stuff, thanks very much for sharing this!Anonymous
May 07, 2013
David, You're a truly bright guy!Anonymous
December 12, 2013
Thanks for the wonderful post. When I try to add more nested nodes to the Task, I faced alignment issues. Even I tried with the link posted by davidsackstein "blogs.microsoft.co.il/.../hierarchical-grid-with-wpf.aspx". Still I am facing the alignment issue. Is there any solution to that? Is there any way to load dynamic controls apart from Textblock. Suppose I have multiple notes attached to my Task and I want it to be displayed in a combobox. How can I manage to show up a combobox when there are multiple items attached and a textblock when there is a single item attached ?Anonymous
December 12, 2013
Raj, For the alignment issues, I'd suggest re-reading the description above about how layout works here and maybe turning on borders/gridlines so you can see what's going on in your scenario. For the TextBox/ComboBox question, I'd recommend looking at using implicit DataTemplates or else ItemTemplateSelector. Hope this helps!Anonymous
December 15, 2013
Thanks. :)