提供静态在WPF控件可以将自定义其行为的附加属性。
继承层次结构
System.Object
Microsoft.TeamFoundation.Controls.WPF.FocusServices
命名空间: Microsoft.TeamFoundation.Controls.WPF
程序集: Microsoft.TeamFoundation.Controls(在 Microsoft.TeamFoundation.Controls.dll 中)
语法
声明
Public NotInheritable Class FocusServices
public static class FocusServices
FocusServices 类型公开以下成员。
附加属性
| 名称 | 说明 | |
|---|---|---|
![]() |
SelectAllTextOnFocus |
页首
方法
| 名称 | 说明 | |
|---|---|---|
![]() ![]() |
EnableGlobalSelectAllOnFocus | 启用焦点的文本框文本的自动选择整个WPF应用程序中。 这一点的一种方法是使用 |
![]() ![]() |
GetSelectAllTextOnFocus | |
![]() ![]() |
SetSelectAllTextOnFocus |
页首
字段
| 名称 | 说明 | |
|---|---|---|
![]() ![]() |
SelectAllTextOnFocusProperty | 如果设置为true。容器,所有子代文本框会将其被自动选择的文本,因此获取键盘焦点。 |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。
.gif)
.gif)
.gif)
.gif)