Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SettingsItem is not supported from NavigationViewNavigator #2652

Open
10 of 16 tasks
DevTKSS opened this issue Jan 1, 2025 · 0 comments
Open
10 of 16 tasks

SettingsItem is not supported from NavigationViewNavigator #2652

DevTKSS opened this issue Jan 1, 2025 · 0 comments
Labels
kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification.

Comments

@DevTKSS
Copy link

DevTKSS commented Jan 1, 2025

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?

@DevTKSS DevTKSS added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification. labels Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification.
Projects
None yet
Development

No branches or pull requests

1 participant