FocusManager.FocusedElement 연결된 속성

정의

이 속성이 연결된 요소에 논리적 포커스가 있는지 여부를 확인합니다.

see GetFocusedElement, and SetFocusedElement
see GetFocusedElement, and SetFocusedElement
see GetFocusedElement, and SetFocusedElement

예제

다음 예제에서는 포커스가 있는 Button 요소를 만드는 방법을 보여 줍니다.

<StackPanel FocusManager.FocusedElement="{Binding ElementName=firstButton}">
  <Button Name="firstButton" />
</StackPanel>

설명

특정 FocusedElement 포커스 범위에 대한 논리적 포커스가 있는 요소입니다. 이 개체에는 키보드 포커스가 있을 수도 있고 없을 수도 있습니다. 키보드 포커스는 키보드 입력을 수신하는 요소를 나타냅니다. 포커스, 키보드 포커스 및 논리적 포커스에 대한 자세한 내용은 입력 개요를 참조하세요.

GetFocusedElement 지정된 SetFocusedElement 포커스 범위 내에서 포커스가 있는 요소를 가져와서 설정하는 데 사용할 수 있습니다.

종속성 속성 정보

Item 가치
식별자 필드 FocusedElementProperty
메타데이터 속성이 다음으로 설정됩니다. true None

적용 대상