FocusManager.GetFocusScope(DependencyObject) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines the closest ancestor of the specified element that has IsFocusScope set to true
.
public:
static System::Windows::DependencyObject ^ GetFocusScope(System::Windows::DependencyObject ^ element);
public static System.Windows.DependencyObject GetFocusScope (System.Windows.DependencyObject element);
static member GetFocusScope : System.Windows.DependencyObject -> System.Windows.DependencyObject
Public Shared Function GetFocusScope (element As DependencyObject) As DependencyObject
- element
- DependencyObject
The element to get the closest focus scope for.
The focus scope for the specified element.
element
is null
.
The default value of IsFocusScope on a Window, Menu, ToolBar, ContextMenu is true
.
A focus scope is a container element that keeps track of the FocusManager.FocusedElement within its scope. By default, the Window class is a focus scope as are the Menu, ContextMenu, and ToolBar classes. An element that is a focus scope has IsFocusScope set to true
.
For more information on focus, keyboard focus, and logical focus, see the Input Overview.
ผลิตภัณฑ์ | เวอร์ชัน |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
คำติชม .NET
.NET เป็นโครงการโอเพนซอร์ส เลือกลิงก์เพื่อให้คำติชม: