Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ShapeNode customization via code-behind (Read 1638 times)
baba
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Jan 20th, 2010
ShapeNode customization via code-behind
Feb 2nd, 2010 at 2:09pm
Print Post  
Hi,
I'd like to know if there's a way to customize a ShapeNode style/behavior via code-behind as an alternative to do the same things done in Tutorial3 sample by using the controltemplate in generic.xaml.

Cheers,
baba.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ShapeNode customization via code-behind
Reply #1 - Feb 2nd, 2010 at 2:24pm
Print Post  
Hi,

Consider using a ControlNode. It lets you display any FrameworkElement as a node, so you could build some composition of panels and controls in the code-behind and host it inside the ControlNode.

Another possibility it to create a ShapeNode-based template in Xaml that adds a ContentPresenter and binds it to ShapeNode.Content. Then you would be able to show a composition of elements created in the code-behind by assigning it to ShapeNode.Content.

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