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

Make a UserControl not focusable

$
0
0

Hello,

Is it possible to have a UserControl which does not take the focus ? I have an software composed with many "userControl" and one of them has to behave like a keyboard. It has only buttons, so when I click on one of the buttons, I don't want to lose the focus of the last element.

I tried with the property "Focusable" but it doesn't work.

I also tried to call the fonction SetStyle(...Selectable, false) in my constructor but I have an error "SetStyle does not exist in the current context..."

Thank you in advance !

PS : Sorry if my message contains mistakes, english is not my native language ;-)


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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