From ed0d0ff955394e495109164f696ebfc424e132a7 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Wed, 1 Oct 2025 18:41:01 +0800 Subject: [PATCH] Set default to raise ItemInvoked after selection change Changed the default value of `m_shouldRaiseItemInvokedAfterSelection` in `NavigationView.h` from `false` to `true`. This ensures that the "item invoked" event is raised by default after a selection change, aligning with the intended behavior of the `NavigationView` component. This change may affect how selection changes are handled and how the component interacts with other parts of the application. --- src/controls/dev/NavigationView/NavigationView.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controls/dev/NavigationView/NavigationView.h b/src/controls/dev/NavigationView/NavigationView.h index a8e4a15669..e2a10483e2 100644 --- a/src/controls/dev/NavigationView/NavigationView.h +++ b/src/controls/dev/NavigationView/NavigationView.h @@ -495,7 +495,7 @@ class NavigationView : // A flag to track that the selectionchange is caused by selection a item in topnav overflow menu bool m_selectionChangeFromOverflowMenu{ false }; // Flag indicating whether selection change should raise item invoked. This is needed to be able to raise ItemInvoked before SelectionChanged while SelectedItem should point to the clicked item - bool m_shouldRaiseItemInvokedAfterSelection{ false }; + bool m_shouldRaiseItemInvokedAfterSelection{ true }; TopNavigationViewLayoutState m_topNavigationMode{ TopNavigationViewLayoutState::Uninitialized };