Skip to content

SettingsItem is not supported from NavigationViewNavigator #2652

Closed

Description

@DevTKSS

Current behavior

Clicking on the SettingsItem while IsSettingsVisible="True":
Uno.Extensions.Navigation.MappedRouteResolver: Warning: TypeFromPath - Navigation failed: Could not resolve type for path 'SettingsItem'.
Uno.Extensions.Navigation.MappedRouteResolver: Warning: TypeFromPath - Navigation failed: Could not resolve type for path 'SettingsItem'.

Not doing anything on click

Expected behavior

should navigate to the Requested Route like MenuItems or FooterItems

How to reproduce it (as minimally and precisely as possible)

set up a Uno App Project with Recommended Preset Template and include Regions for Uno.Extensions.Navigation (blanc requires more work for setup because you have to add extensions nuget manually)
Add a NavigationView to a Page, add some Page, like "AboutPage" to explicitly respect the Naming rules for Navigator in Uno as Nested Route to MainPage beside a Home Page thats set to default. since I use mvux I set up Route

"About", view: views.FindByViewModel<MainModel>()

Declare:

<NavigationView.SettingsItem>
    <NavigationViewItem Content="AppSettings" uen:Navigation.Request="./About" uen:Navigation.Data="{Binding }"/>
</NavigationView.SettingsItem>

run the app and click on SettingsItem, see same message in console.

Environment

Nuget Package (s):

Package Version(s): Uno.Sdk 5.5.56

Affected platform(s):

  • iOS
  • macOS (AppKit)
  • Mac Catalyst
  • Android
  • WebAssembly
  • Windows
  • Skia (WPF)
  • Skia (GTK on Linux/macOS/Windows)
  • Skia (Linux Framebuffer)
  • Build tasks

Visual Studio:

  • 2019 (version: )
  • 2022 (version: latest)
  • Visual Studio Code (version: )
  • Rider Windows (version: )
  • Rider macOS (version: )

Relevant plugins:

  • Resharper (version: )

Anything else we need to know?

I think this issue can be resolved by editing this:
image

but this is estimating a Enumerable and the SettingsItem is not Enumerable its one element... Should be easy to fix isnt it?

Activity

  1. added
    kind/bug
    triage/untriaged
    on Jan 1, 2025
  2. removed
    triage/untriaged
    on May 10, 2025
  3. MartinZikmund commented on May 22, 2025

    @MartinZikmund
    Member

    @DevTKSS turns out the SettingsItem is correctly supported, but it is not supposed to be set as a whole in XAML, check the changes in docs in my PR - #2782 .

    Opened unoplatform/uno#20504 to resolve this in core

  4. agneszitte commented on Jun 5, 2025

    @agneszitte
    Member

    @ramezgerges the documentation changes will need to be reviewed here as @MartinZikmund opened unoplatform/uno#20504 to be fixed later on in core

  5. ramezgerges commented on Jun 5, 2025

    @ramezgerges
    Contributor

    Following the updated docs works as expected. With the repro steps above, things are still not failing at compile time, but that is being tracked separately.

  6. added theissue type on Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions