closed
Public

It would be great if I could setFocus was an option when operating on an element. I’d like to have a PageLoaded event that sets focus on a particular field. Thank you!

4 answers

Thanks for the idea 🙂

I think this new action should be available in TextEditBox and Spinner (Value Stepper).

#1

This has been implemented in V2.65

#2

Why do we have this action limited to TextEditBox and Spinner? I want to set the focus on a list and currently there seems no way to do so. I tried the set Focused_Element_Id and it does not seem to work. I hope I am missing something. If this does not work, I have to go use the dreaded Microsoft Expression Blend.

#3
  1. Hi JB, this action is only available for those elements that can accept text input. Meanwhile the Focused_Element_Id property is read-only as it is a system property.

    What's your purpose to set focus to a List element then?
  2. I am trying to use keyboard up/down/left/right keys to move between different sections on a screen.
  3. So far the List element does not support moving selection with keyboard. So setting focus on it doesn't make sense for now. We will consider supporting this in the future.

I would also like to see this expanded to more element types like comboboxes, checkboxes, radio buttons, etc.

#4
  1. We will consider that, thanks.

This question is now closed