How to create a right-click context menu for a button in WPF -


i know how create left-click context menu button, not sure how right click? (i.e. how specify context menu should appear on right-click, not left click).

many thanks.

here sample:

<button content="button" name="btn" width="100">     <button.contextmenu>         <contextmenu>             <menuitem header="cut"/>             <menuitem header="copy"/>             <menuitem header="paste"/>         </contextmenu>     </button.contextmenu> </button> 

enter image description here


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -