Skip to content

EventArgs.Cancel does not prevent navigation when canceling on OnNavigating event. #28539

@SuthiYuvaraj

Description

@SuthiYuvaraj

Description

When canceling the navigation OnNavigating Event does not work for the below navigations

  • TabBar - Tab - ShellContent
  • TabBar - ShellContent
  • FlyoutItem - TabBar- ShellContent
  • FlyoutItem - ShellContent

Steps to Reproduce

  1. Create a sample with ShellPage with TabBar - Tab- ShellContent
  2. Override a navigating event and cancel a navigation based on the OriginalString
    Excepted output: Navigation should be canceled
    Actual output: The navigated event is triggered and navigation is completed
    CancelIssue.zip

Link to public reproduction project repository

No response

Version with bug

9.0.50 SR5

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-navigationNavigationPagepartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/windowss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions