-
Notifications
You must be signed in to change notification settings - Fork 28
Labels
Description
Current behavior
MainCommand does not appear when setting the icon on a global style, no error is shown it just doesn't render. When removing it from the style, appears behaves as expected.
SideNote: This is using Native renderer
Expected behavior
Main Command should appear and navigte back when backstack is not empty even if the icon is set from style.
How to reproduce it (as minimally and precisely as possible)
- Create a new Uno Platform application with this features:
- Create an style for main command AppBarButton
- Set a global default style for NavigationBar control and set Style for MainCommand
- Run Application and navigate to second page
- back button doesn't appear (if icon is removed main command appears and works correctly)
Repro project:
NavBarTest.zip
Nuget Package:
Package Version(s):
Uno.Sdk 6.0.96
Uno.Toolkit.WinUI 7.0.2
Uno.Toolkit.Skia.WinUI 7.0.2
Installed Workloads:
Workload version: 9.0.203
Installed Workload Id Manifest Version Installation Source
---------------------------------------------------------------------
android 35.0.61/9.0.100 SDK 9.0.300
ios 18.4.9288/9.0.100 SDK 9.0.300
maccatalyst 18.4.9288/9.0.100 SDK 9.0.300
macos 15.4.9288/9.0.100 SDK 9.0.300
maui 9.0.14/9.0.100 SDK 9.0.300
tvos 18.4.9288/9.0.100 SDK 9.0.300
wasm-tools 9.0.4/9.0.100 SDK 9.0.300
Affected platform(s):
- WebAssembly
- Android
- iOS
- macOS (AppKit)
- Mac Catalyst
- Skia
- WPF
- GTK (Linux)
- Linux Framebuffer
- Tizen
- Windows
IDE:
- Visual Studio 2022
- Visual Studio 2019
- Visual Studio Code
- Visual Studio for Mac
- Rider Windows
- Rider macOS
Relevant plugins:
Anything else we need to know?
Friction: for some reason now I can't run the samples.Mobile projects on MacOS Jetbrains Rider
Reactions are currently unavailable