In versions prior to Silverlight 4, when you right clicked an UI Element, the events were handled by the Silverlight plug-in internally to display the Silverlight configuration dialog. In Silverlight 4, you now have the ability to right click an element and invoke a custom ContextMenu.
Silverlight 4 now adds support for MouseRightButtonDown and the MouseRightButtonUp events on all UIElements. The Silverlight Toolkit (April Release) also introduces the ContextMenu control to Silverlight developers.
In this article, we will see how to use the ContextMenu control released in the Silverlight 4 Toolkit
Display the ContextMenu on a TextBox by using the new Right-Click mouse event support in Silverlight 4
Access the clipboard programmatically (new in Silverlight 4) to do Cut, Copy and Paste operations on a TextBox Make sure you are using the latest Silverlight toolkit over here.
Let us get started
Step 1: Create a new Silverlight 4 application. Open VS2010 > File > New Project > Silverlight Application
View the Original article