Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Need TextBlock at Left Side of the Node (Read 1307 times)
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Need TextBlock at Left Side of the Node
Feb 9th, 2010 at 3:59pm
Print Post  
Hi,

We have custom shape node for our application in our diagram. Following is the code for that

Code
Select All
textOnTheRight = new MindFusion.Diagramming.Wpf.Shape(
Shapes.Rectangle.Outline,// reuse the rectangular shape
null,// no decorations
new ElementTemplate[]// define text region
  {
new LineTemplate(32, 29, 90, 29),
new LineTemplate(90,29, 90, 69),
new LineTemplate(90, 69, 32, 69),
new LineTemplate(32, 69, 32, 29)
  },
   FillRule.EvenOdd,// doesn't matter here
   "textontheright"// to access the shape later using Shape.FromId
);  



I want to attach this TextBlock at Left Side of the node, is that possible? If yes, how?

Regards,
Anshul
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need TextBlock at Left Side of the Node
Reply #1 - Feb 10th, 2010 at 9:06am
Print Post  
Hi,

If you mean you need the text area on the left side, try these coordinates:

Code
Select All
new LineTemplate(0, 0, 50, 0),
new LineTemplate(50, 0, 50, 100),
new LineTemplate(50, 100, 0, 100),
new LineTemplate(0, 100, 0, 0) 



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