Apply different template to Distinguised Item

May 4, 2012 at 11:09 AM

Hi Christian,

                 I really liked the NodeTemplate feature but i would like to display just single node in different template from the other. I did see a property name DistinguisghedItem which i think should do the trick. Could you provide explanation on how i can perform this ?

May 4, 2012 at 11:18 AM

The best way to achieve this would be using a TemplateSelector and select a diferent template depending on the datacontext Type or on a property of the DataContext. You could use the MoleculeViewer as an example:

 

http://christiandotnet.com/demos/molecule/

 

http://slspringgraph.codeplex.com/SourceControl/changeset/view/497#18596

 

May 4, 2012 at 11:49 AM

thanks Christian, I will try this and return back with the what i did

May 10, 2012 at 12:19 PM

Hi christian,

                   This worked great for me. I had implemented it to my linking