Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Can I create a shape node from a xaml file? (Read 1830 times)
zgts
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Dec 17th, 2008
Can I create a shape node from a xaml file?
Dec 17th, 2008 at 7:07am
Print Post  
I have a xaml file which defines an image,
we want to use that xaml to create a shape node, is that possible?
Thank you for help.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can I create a shape node from a xaml file?
Reply #1 - Dec 17th, 2008 at 7:45am
Print Post  
You can add any UIElement-derived object to the diagram. What is the base type of the image you define in the xaml? E.g. if you have a x:Class="MyNode" attribute there, try the following:

diagram.Nodes.Add(new MyNode());

Stoyan
  
Back to top
 
IP Logged
 
zgts
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Dec 17th, 2008
Re: Can I create a shape node from a xaml file?
Reply #2 - Dec 17th, 2008 at 10:04am
Print Post  
Sounds good, thank you.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint