FocusManager.GetFocusScope(DependencyObject) 메서드

정의

로 설정된 지정된 요소의 가장 가까운 상위 요소를 IsFocusScope 결정합니다 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

가장 가까운 포커스 범위를 가져올 요소입니다.

반품

지정된 요소의 포커스 범위입니다.

예외

elementnull입니다.

설명

의 기본값 IsFocusScopeWindowToolBarMenuContextMenu 은 .입니다.true

포커스 범위는 범위 내에서 FocusedElement를 추적하는 컨테이너 요소입니다. 기본적으로 Window 클래스는 , ContextMenu및 클래스와 ToolBar 마찬가지로 Menu포커스 범위입니다. 포커스 범위인 요소가 .로 true설정되었습니다IsFocusScope.

포커스, 키보드 포커스 및 논리적 포커스에 대한 자세한 내용은 입력 개요를 참조하세요.

적용 대상