Skip to content

Conversation

Jack251970
Copy link

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.

Fixes

Fix an issue that NavigationView.ItemInvoke event is not invoked for the first item navigation.

PR Type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

Description

Current Behavior

The first item navigation will not invoke ItemInvoke event

New Behavior

The first item navigation will invoke ItemInvoke event

Motivation and Context

How Has This Been Tested?

  • I have performed a self-review of my own code
  • I have added tests to cover my changes

Screenshots (if appropriate):

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.
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant