Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > TreeView > Does HierarchicalDataTemplate exist for WPF?

Answered Does HierarchicalDataTemplate exist for WPF?

Feed from this thread
  • Tony avatar

    Posted on Nov 21, 2011 (permalink)

    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

    Reply

  • Answer Tina Stancheva Tina Stancheva admin's avatar

    Posted on Nov 23, 2011 (permalink)

    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 >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > TreeView > Does HierarchicalDataTemplate exist for WPF?
Related resources for "Does HierarchicalDataTemplate exist for WPF?"

WPF TreeView Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]