views:

5202

answers:

4

I want to create a right click context menu for my textboxes to provide the typical copy/paste functionality. Any ideas on how to go about this?

+6  A: 

Looks like this is a way to do this here, another example here, and the most recent one here. Using these methods you should be able to show your own context menu. Once you have that you'll need access to the clipboard and there is an example of this here.

Good luck!

Bryant
+4  A: 

Just for completeness. The above links are for version 1.1 (before beta of 2). The latest version for silverlight 2 is at http://blogs.microsoft.co.il/blogs/alex_golesh/archive/2008/05/28/how-to-handle-rightclick-mouse-event-in-silverlight-take-2.aspx

Tjipke
A: 

The demo in this open source project does just that while supporting nested menus:

http://sl4popupmenu.codeplex.com/

Ziad