Does HierarchicalDataTemplate exist for WPF?

4 posts, 1 answers
  1. Tony
    Tony avatar
    12 posts
    Member since:
    Nov 2011

    Posted 21 Nov 2011 Link to this post

    While creating corresponding WPF libraries for our Sliverlight ones, I ran across an issue. One of our views uses a RadTreeView with HierarchicalDataTemplates. In Silverlight, it works fine using the Telerik.Windows.Controls.HierarchicalDataTemplate. That same view will not compile in the WPF assembly because Telerik.Windows.Controls.HierarchicalDataTemplate does not seem to exist for WPF. I know there's a Windows HierarchicalDataTemplate, but I can't seem to find the Telerik one anywhere. 

    If this type does not exist, your documentation for ItemTemplateSelector might need to be updated as well:
    http://www.telerik.com/help/wpf/radtreeview-populating-with-data-item-template-selector.html

    That article shows it's usage, but again, I can't find that type anywhere in the Telerik WPF assemblies. I'm using the latest 2011 Q3 release, btw.

    Thanks in advance...
    -Tony
  2. Answer
    Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 23 Nov 2011 Link to this post

    Hello Tony,

    In WPF you can use the System.Windows.HierarchicalDataTemplate. Since in Silverlight there is no such class, we provided one. And the documentation article content for Silverlight and WPF has obviously gotten mixed up and we will fix that as soon as possible. And I would also like to apologize for the confusion this error caused.

    In your application please change the HierarchicalDataTemplate type to System.Windows.HierarchicalDataTemplate.

    Also as a small sign of appreciation for bringing the issue to our attention, I updated your Telerik account.

    Kind regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Brian
    Brian avatar
    17 posts
    Member since:
    Jun 2011

    Posted 30 Oct 2012 Link to this post

    Just an FYI that the documentation is still mixed up.
  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 31 Oct 2012 Link to this post

    Hi Brian,

    Thank you for getting back to us. The article is now properly updated and the changes will be reflected with the update of our documentation next week.

    Regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top