Home Forums Software Development EyeX Question, WPF Button + Gaze Aware Element. Reply To: EyeX Question, WPF Button + Gaze Aware Element.

Jenny [Tobii]

Hi Joshua,

I’m not sure what you mean by this:

When I click with a mouse on a WPF Button, it returns which object is currently activated by gaze and then adds it to some sort of queue or array.

But the general answer to the question is that you can use the “eyeX:Behavior.ActivationFocusChanged” routed event to keep track of what object is currently selected by gaze. The value of the “eyeX:Behavior.ActivationFocus” property will be “HasTentativeActivationFocus” when the user looks at the button, and then when the user presses down the EyeX Button on the keyboard the ActivationFocus property value will change to “HasActivationFocus”. (When the EyeX Button is released, an “eyeX:Behavior.Activate” event will be triggered for the button looked at.)

I hope this helps.