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>
Comments
Post a Comment