FocusServices Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Provides static attached properties that can be set on WPF controls to customize their behavior.

Inheritance Hierarchy


Namespace:  Microsoft.TeamFoundation.Controls.WPF
Assembly:  Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)


Public NotInheritable Class FocusServices
public static class FocusServices
public ref class FocusServices abstract sealed
type FocusServices =  class end
public final class FocusServices

The FocusServices type exposes the following members.

Attached Properties

  Name Description
Public attached property SelectAllTextOnFocus



  Name Description
Public methodStatic member EnableGlobalSelectAllOnFocus Enables the automatic selection of text box text on focus for the whole WPF application. An alternative to this is to use the
Public methodStatic member GetSelectAllTextOnFocus
Public methodStatic member SetSelectAllTextOnFocus



  Name Description
Public fieldStatic member SelectAllTextOnFocusProperty If set to true on a container, all of the descendant text boxes will have their text auto-selected when they gain keyboard focus.


Thread Safety

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

See Also


Microsoft.TeamFoundation.Controls.WPF Namespace