I'm trying to set up the XamDataTree with templates that will switch based on the underlying type. Is using a DataTemplateSelector supported? I read a very old post that indicated maybe not, but can someone confirm? If it is supported, can you provide an example? Thanks!
Unfortunately, the XamDataTree does not support a DataTemplateSelector for any of its template properties at this time.
I am under the impression that you are likely looking for this to work with an ItemTemplate for a NodeLayout though, and if this is the case, you can still kind of do this by using DataTriggers to target pieces of the template and modify their Visibility based on the underlying data. For example, I am attaching a sample project to demonstrate a different piece of a template being hidden or shown based on an underlying data item property.
I hope this helps. Please let me know if you have any other questions or concerns on this matter.
Argh, okay thanks at least that's something. We'll give that approach a go.