Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to define a custom cont template to Shape node (Read 1192 times)
dev
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Sep 28th, 2010
How to define a custom cont template to Shape node
Oct 29th, 2010 at 7:08am
Print Post  
In we had an option to define a custom content template for the Shape node. But in the WPF control we do not have the Template property for Shape node. How can we define that is there any way to do so.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to define a custom cont template to Shape
Reply #1 - Oct 29th, 2010 at 8:01am
Print Post  
In the Silverlight version all items derive from Control, but in WpfDiagram they are FrameworkElements for performance reasons (compare the AnimatedLayout samples to see the difference) and do not support control templates. However you can apply DataTemplates to TemplatedNode objects.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint