Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic horizondla and vertical lines using silverlight (Read 2594 times)
ramesh.Kurmilla
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: May 12th, 2009
horizondla and vertical lines using silverlight
May 18th, 2009 at 8:42am
Print Post  
hi
How to Draw horizondla and vertical lines using Diagramlite Silverlight? with codebehind file(pahe.xaml.cs).

plz help me thi s issue..!!!!

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: horizondla and vertical lines using silverligh
Reply #1 - May 18th, 2009 at 9:34am
Print Post  
Hi,

You could use unconnected & locked links to draw lines:

Code
Select All
diagram.AllowUnconnectedLinks = true;

int x1 = 10;
int y = 10;
int x2 = 400;
int offsetY = 20;

for (int i = 0; i < 5; i++)
{
	DiagramLink link = diagram.Factory.CreateDiagramLink(
		new Point(x1, y), new Point(x2, y));
	link.Locked = true;
	y += offsetY;
}
 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
ramesh.Kurmilla
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: May 12th, 2009
Re: horizondla and vertical lines using silverligh
Reply #2 - May 18th, 2009 at 9:49am
Print Post  
Thanks Stoyan..!!

But how to draw Vertical lines on horizondal?

Regards
Ram




  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: horizondla and vertical lines using silverligh
Reply #3 - May 18th, 2009 at 11:00am
Print Post  
Code
Select All
int y1 = 10;
int y2 = 400;
int x = 10;
int offsetX = 20;

for (int i = 0; i < 5; i++)
{
	DiagramLink link = diagram.Factory.CreateDiagramLink(
		new Point(x, y1), new Point(x, y2));
	link.Locked = true;
	x += offsetX;
}
 



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