다음을 통해 공유


NavigationView.SelectionChanged 이벤트

정의

현재 선택한 항목이 변경될 때 발생합니다.

UWP용 동등한 WinUI 2 API: Microsoft.UI.Xaml.Controls.NavigationView.SelectionChanged(Windows 앱 SDK WinUI의 경우 Windows 앱 SDK 네임스페이스 참조).

// Register
event_token SelectionChanged(TypedEventHandler<NavigationView, NavigationViewSelectionChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
NavigationView::SelectionChanged_revoker SelectionChanged(auto_revoke_t, TypedEventHandler<NavigationView, NavigationViewSelectionChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<NavigationView,NavigationViewSelectionChangedEventArgs> SelectionChanged;
function onSelectionChanged(eventArgs) { /* Your code */ }
navigationView.addEventListener("selectionchanged", onSelectionChanged);
navigationView.removeEventListener("selectionchanged", onSelectionChanged);
- or -
navigationView.onselectionchanged = onSelectionChanged;
Public Custom Event SelectionChanged As TypedEventHandler(Of NavigationView, NavigationViewSelectionChangedEventArgs) 
<NavigationView SelectionChanged="eventhandler" />

이벤트 유형

적용 대상

추가 정보