Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Make Enter On A Button Act As Mouse Click. Please Help!

$
0
0

Hi there all,

I have my program set up so as that when i press enter it tabs between all the textboxes on the usercontrol. i am wanting it though, so that when it lands on a button and i press enter, it acts like a previewmouseleftbutton up event. is it possible to do this? i have multiple buttons on the form so i cant use the default button property.When i press enter the previewmouseleftbutton event must be called without having to create a new handler.

Any help would be greatly appreciated.


james


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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