Quantcast
Viewing all articles
Browse latest Browse all 18858

Attaching "KeyCode" DependencyProperty to a Button in wpf using C#

Hello,

I have a wpf app in which i am dragging "Buttons" from a customized toolbox(in the app) on to a canvas. On that canvas i am converting the properties of buttons as XMLElement and saving as XML file. Now each button corresponds to a key of the keyboard. So, i have to attach the keycodes to the indiavidual buttons and correspondingly the keycode should reflect with the buttons after they are dragged n dropped on the canvas. So, looking forward for replies on how to attach the keycode property with the buttons.

Thanks in advance,

Gaurav


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>