Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Custom cut, copy and paste (Read 2600 times)
tusharpateluk
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: Sep 3rd, 2008
Custom cut, copy and paste
Nov 10th, 2008 at 10:13am
Print Post  
Hi Stoyo,

I have created cutom diagramLink and Shape node. I have added custom properties to Shape node. I want to do customer cut, copy and paste based on type of the shape node.

If I used defualt functionality for WPFDiagram then, it will cut or copy what ever is selected.

What's the best way of doing these custom operations. Looking forward to your reply.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Custom cut, copy and paste
Reply #1 - Nov 10th, 2008 at 11:49am
Print Post  
Hi,

Do you need to copy to the clipboard other kinds of data, instead of the selected items? You can do that using the methods of the System.Windows.Clipboard class.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
tusharpateluk
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: Sep 3rd, 2008
Re: Custom cut, copy and paste
Reply #2 - Nov 10th, 2008 at 12:14pm
Print Post  
I need to copy data and also create outgoing links based on the type of the Shape node. So, their can be 1,2, or 3 links going out of the shape node based on the Shape node.

So, while pasting a shapenode, i need to lookup the type and then create additional links
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Custom cut, copy and paste
Reply #3 - Nov 10th, 2008 at 1:25pm
Print Post  
You could create additional links from the handler of the NodePasted event.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
tusharpateluk
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: Sep 3rd, 2008
Re: Custom cut, copy and paste
Reply #4 - Nov 10th, 2008 at 2:13pm
Print Post  
Thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint