Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Link Style change (Read 2598 times)
tusharpateluk
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: Sep 3rd, 2008
Link Style change
Nov 14th, 2008 at 3:03pm
Print Post  
I am allowing user to change link style and segements. While testing, If their are more segments and if I try to change the same my dragging one of the segement, WPFDiagram does not allow me to change the link position.

I have seen this working on your demo application. I assume their should be some property that allows you to do this. Please help
  
Back to top
 
IP Logged
 
tusharpateluk
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: Sep 3rd, 2008
Re: Link Style change
Reply #1 - Nov 14th, 2008 at 3:07pm
Print Post  
Found the problem, It was my mistake. I was handling Link Modifying event.
  
Back to top
 
IP Logged
 
tusharpateluk
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: Sep 3rd, 2008
Re: Link Style change
Reply #2 - Nov 14th, 2008 at 3:32pm
Print Post  
Related to the above question. User changes the line style and then clicks copy. When user then clicks paste, The line style is change back to Polyline with 1 segment.

How can I maintain the style and other attributes of the link
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link Style change
Reply #3 - Nov 14th, 2008 at 4:33pm
Print Post  
This worked fine in my test:

Code
Select All
DiagramLink link = diagram.Factory.CreateDiagramLink(
	new Point(0, 0), new Point(100, 50));
link.Style = LinkStyle.Cascading;

diagram.Selection.AddItem(link);
diagram.CopyToClipboard(true);
diagram.PasteFromClipboard(new Point(10, 10), true);
 



Are you sure you aren't changing the style in response to NodePasted or LinkPasted events?

Stoyan
  
Back to top
 
IP Logged
 
tusharpateluk
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: Sep 3rd, 2008
Re: Link Style change
Reply #4 - Nov 14th, 2008 at 4:45pm
Print Post  
Thanks, it was in clone method. I found the problem. Thanks again
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint