Esporta (0) Stampa
Espandi tutto
EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

FocusManager Class

Provides utility methods related to element focus, without the need to handle focus-related events.

System.Object
  System.Windows.Input.FocusManager

Namespace:  System.Windows.Input
Assembly:  System.Windows (in System.Windows.dll)

public static class FocusManager

The FocusManager type exposes the following members.

  NameDescription
Public methodStatic memberGetFocusedElementQueries the Windows Phone focus system to determine which object has focus.
Top

Windows Phone focus has the characteristic that while the focus-reporting events GotFocus and LostFocus are raised asynchronously, the focus returned by GetFocusedElement is determined synchronously. This design attempts to loosen constraints on runtime adjustments to element trees that could result from having to wait for the focus to be determined and moved. For cases where determining the synchronous focus is critical, use the GotFocus and LostFocus events as a cue, but then call FocusManager.GetFocusedElement to verify the synchronous focus.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Microsoft sta conducendo un sondaggio in linea per comprendere l'opinione degli utenti in merito al sito Web di MSDN. Se si sceglie di partecipare, quando si lascia il sito Web di MSDN verrà visualizzato il sondaggio in linea.

Si desidera partecipare?
Mostra:
© 2015 Microsoft