Recommended

Skip Navigation LinksHome / News / View News

Right Click a TextBox and Display a ContextMenu using Silverlight 4

+ Add to SilverlightShow Favorites
0 comments   /   posted by Silverlight Show on May 25, 2010
(0 votes)
Take a look at this article in which Suprotim Agarwal explains about the ability to right click an element and invoke a custom ContextMenu in Silverlight 4.

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

Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 6 and 7 and type the answer here:

Help us make SilverlightShow even better and win a free t-shirt. Whether you'd like to suggest a change in the structure, content organization, section layout or any other aspect of SilverlightShow appearance - we'd love to hear from you! Need a material (article, tutorial, or other) on a specific topic? Let us know and SilverlightShow content authors will work to have that prepared for you. (hide this)