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 (6)
  1. davidsackstein says:

    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

    David

  2. Delay says:

    David,

    Great stuff, thanks very much for sharing this!

  3. Maciek says:

    David,

    You're a truly bright guy!

  4. Raj says:

    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 ?

  5. Delay says:

    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!

Comments are closed.