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?
Pressing Shift-F10 will bring up the context menu for any selected item.
Type regedit and press Enter. You should see a value named MenuDropAlignment in the right pane (If it doesn't exist, create a new string value named MenuDropAlignment). Double-click on it to modify. In order to make context menu open to the right side, type 0 in the Value data field and click OK.
Right-click context menu is now part of the Silverlight Control Toolkit.
What it can and can't do: http://blogs.msdn.com/delay/archive/2010/04/15/alive-and-kickin-new-silverlight-4-toolkit-released-with-today-s-silverlight-4-rtw.aspx
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With