How to check if button has keyboard-focus?

Class library usage, coding and language questions.
AlexDozer
Posts: 33
Joined: Wed Sep 09, 2009 5:41 pm

How to check if button has keyboard-focus?

Post by AlexDozer » Fri Oct 28, 2011 7:07 pm

Hello,

I want to check if the buttons have the right keyboard-focus by default. I cannot find a Property
in Spy that gives me this information. It's a WPF-Application. How do I make this?

Regards Alex

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: How to check if button has keyboard-focus?

Post by Support Team » Mon Oct 31, 2011 11:30 am

Hi,

If the element has the focus you could use following method to check if the element has focus
http://www.ranorex.com/Documentation/Ra ... sFocus.htm

Regards,
Peter
Ranorex Team
.
Image