Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Silverlight
Silverlight 3
FocusManager Class
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Silverlight 3

Other versions are also available for the following:
.NET Framework Class Library for Silverlight
FocusManager Class

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

Namespace:  System.Windows.Input
Assembly:  System.Windows (in System.Windows.dll)
Visual Basic (Declaration)
Public NotInheritable Class FocusManager
Visual Basic (Usage)
You do not need to declare an instance of a static class in order to access its members.
C#
public static class FocusManager

Silverlight 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.

System..::.Object
  System.Windows.Input..::.FocusManager
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker