Partager via


Focus

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Attempts to set the focus on the control.

retval = object.Focus()

Return Value

Type: Boolean

true if focus was set to the control, or focus was already on the control. false if the control is not focusable.

Managed Equivalent

Focus

Applies To

TextBox, PasswordBox

Version Information

Silverlight 2