Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Issue trying to copy a link line to the clipboard (Read 2842 times)
MavinTech
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 19
Joined: Jul 30th, 2020
Issue trying to copy a link line to the clipboard
Dec 8th, 2020 at 3:21pm
Print Post  
I am using the diagram control similar to a canvas control with items on it.  To draw a line segment, I add a Link Line to the diagram where I have "AllowUnconnedtedLinks="true".

When I try to copy the link to clipboard (Ctrl-C), I get an error.  It works with the ShapeNodes I use, but if there is a LinkLine in the selection to copy, it gives me the exception.
  

LinkLine_copy_error.txt (Attachment deleted)
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3374
Joined: Oct 19th, 2005
Re: Issue trying to copy a link line to the clipboard
Reply #1 - Dec 8th, 2020 at 4:24pm
Print Post  
This build should fix that -
https://mindfusion.eu/_temp/wpfdiag_copy_link.zip

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
MavinTech
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 19
Joined: Jul 30th, 2020
Re: Issue trying to copy a link line to the clipboard
Reply #2 - Dec 10th, 2020 at 9:06pm
Print Post  
That worked for when I use Ctrl-C and Ctrl-V.  Multiple nodes and multiple links are copied and then pasted.

Shouldn't that also work for the CopyToClipboard and PasteFromClipboard?  What I'm getting there is the nodes will copy and paste, but the links will not.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3374
Joined: Oct 19th, 2005
Re: Issue trying to copy a link line to the clipboard
Reply #3 - Dec 11th, 2020 at 8:11am
Print Post  
Have you tried the PasteFromClipboard(...unconnectedLinks) overload?

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint