how to put a focus on a TextBox object in Windows Phone 8.1

2

Hello, I know it's a simple question. Before on windows phone 7.5, just put the code like this:

textBox.Focus();

How do I use it on windows phone 8.1? I'm waiting for an answer. Beforehand I want to thank the community.

    
asked by anonymous 21.09.2015 / 14:45

1 answer

0
___ erkimt ___ how to put a focus on a TextBox object in Windows Phone 8.1 ______ qstntxt ___

Hello, I know it's a simple question. Before on windows phone 7.5, just put the code like this:

Focus(FocusState);

How do I use it on windows phone 8.1? I'm waiting for an answer. Beforehand I want to thank the community.

    
______ ___ azszpr118721

To focus on an object, use the Focus property, as follows:

textBox.Focus(FocusState.Pointer);

Example:

In a TextBox named textBox , to set the focus use:

Focus(FocusState);
    
___
17.03.2016 / 22:27