Share via


DesktopWindowXamlSource.TakeFocusRequested 이벤트

정의

호스트 데스크톱 애플리케이션이 DesktopWindowXamlSource 개체에서 포커스를 되돌립니다(예: 사용자가 DesktopWindowXamlSource 의 마지막 포커스 가능 요소에 있고 Tab을 누름)를 받을 때 발생합니다.

// Register
event_token TakeFocusRequested(TypedEventHandler<DesktopWindowXamlSource, DesktopWindowXamlSourceTakeFocusRequestedEventArgs const&> const& handler) const;

// Revoke with event_token
void TakeFocusRequested(event_token const* cookie) const;

// Revoke with event_revoker
DesktopWindowXamlSource::TakeFocusRequested_revoker TakeFocusRequested(auto_revoke_t, TypedEventHandler<DesktopWindowXamlSource, DesktopWindowXamlSourceTakeFocusRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<DesktopWindowXamlSource,DesktopWindowXamlSourceTakeFocusRequestedEventArgs> TakeFocusRequested;
function onTakeFocusRequested(eventArgs) { /* Your code */ }
desktopWindowXamlSource.addEventListener("takefocusrequested", onTakeFocusRequested);
desktopWindowXamlSource.removeEventListener("takefocusrequested", onTakeFocusRequested);
- or -
desktopWindowXamlSource.ontakefocusrequested = onTakeFocusRequested;
Public Custom Event TakeFocusRequested As TypedEventHandler(Of DesktopWindowXamlSource, DesktopWindowXamlSourceTakeFocusRequestedEventArgs) 

이벤트 유형

설명

데스크톱 애플리케이션에 DesktopWindowXamlSource 를 추가하는 경우 기본적으로 DesktopWindowXamlSourceTab 또는 화살표 키와 같은 키보드 이벤트를 통해 포커스 탐색을 자동으로 처리하지 않습니다. 이 이벤트를 처리하여 사용자가 DesktopWindowXamlSource에서 벗어날 때 호스트 애플리케이션의 다음 포커스 가능 요소에 프로그래밍 방식으로 초점을 맞춥니다.

적용 대상