Share via


FocusServices Class

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

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Controls.WPF.FocusServices

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

Syntax

'Declaration
Public NotInheritable Class FocusServices
public static class FocusServices
public ref class FocusServices abstract sealed
[<AbstractClass>]
[<Sealed>]
type FocusServices =  class end
public final class FocusServices

The FocusServices type exposes the following members.

Attached Properties

  Name Description
Public attached property SelectAllTextOnFocus

Top

Methods

  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

Top

Fields

  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.

Top

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

Reference

Microsoft.TeamFoundation.Controls.WPF Namespace