This is a migrated thread and some comments may be shown as answers.

Does HierarchicalDataTemplate exist for WPF?

3 Answers 263 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 22 Nov 2011, 12:58 AM
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

3 Answers, 1 is accepted

Sort by
0
Accepted
Tina Stancheva
Telerik team
answered on 23 Nov 2011, 10:44 AM
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 >>

0
Brian
Top achievements
Rank 1
answered on 30 Oct 2012, 09:06 PM
Just an FYI that the documentation is still mixed up.
0
Tina Stancheva
Telerik team
answered on 31 Oct 2012, 04:28 PM
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.

Tags
TreeView
Asked by
Tony
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Brian
Top achievements
Rank 1
Share this question
or