Poznámka:
Přístup k této stránce vyžaduje autorizaci. Můžete se zkusit přihlásit nebo změnit adresáře.
Přístup k této stránce vyžaduje autorizaci. Můžete zkusit změnit adresáře.
This example shows how to use the Focus method to set focus on a TextBox control.
Example
The following Extensible Application Markup Language (XAML) example describes a simple TextBox control named tbFocusMe
<TextBox Name="tbFocusMe">
This is the text in my text box.
</TextBox>
The following example calls the Focus method to set the focus on the TextBox control with the Name tbFocusMe.
tbFocusMe.Focus();
tbFocusMe.Focus()