Jakub Loksa
Jakub Loksa

Reputation: 577

How to make Button only mouse clickable (not by Enter)

I have a Button WPF control, and I don't want user pressing the button with an Enter key. I want to make it possible to click a button only with a mouse click.

Is it possible in WPF?

Upvotes: 0

Views: 218

Answers (1)

Mr. Leeds
Mr. Leeds

Reputation: 164

Try setting the button's Focusable Property to False.

Upvotes: 3

Related Questions