I am running a fresh sample with following options:
-.NET 8
-Only webassembly and SKIA
-MVVM
-XAML
-Fluent + theme service
-no config, http or localisation
-+Server + wasm multithreading no PWA and no VSCODE
-default rest of options
The navigationbar after going to the second page does not show on desktop/windows (skia) until the window is resized or switched to another display. InvalidateMeasure seems to have no impact.
I noticed the issue is also affected by binding the navigationbar content. If it is binded it works (like main page) but if its a constant text it will not show the entire bar (including primary and secondary icons) although the buttons do still work.
Works:
<utu:NavigationBar Content="{Binding Title}"/>
Does not work
<utu:NavigationBar Content="Second Page"/>
Expected behavior
Navigationbar should be shown right away
How to reproduce it (as minimally and precisely as possible)
Either use the zip or create a project with above settings, the sample will not show a navbar on the second page. Only desktop windows was tested.
It seems that this is fixed as of package version 5.3.0-dev.12 of Uno. With the upcoming 5.3 stable release, it should include the fix in the next stable packages
Current behavior
I am running a fresh sample with following options: -.NET 8 -Only webassembly and SKIA -MVVM -XAML -Fluent + theme service -no config, http or localisation -+Server + wasm multithreading no PWA and no VSCODE -default rest of options
The navigationbar after going to the second page does not show on desktop/windows (skia) until the window is resized or switched to another display. InvalidateMeasure seems to have no impact.
I noticed the issue is also affected by binding the navigationbar content. If it is binded it works (like main page) but if its a constant text it will not show the entire bar (including primary and secondary icons) although the buttons do still work.
Works:
<utu:NavigationBar Content="{Binding Title}"/>
Does not work<utu:NavigationBar Content="Second Page"/>
Expected behavior
Navigationbar should be shown right away
How to reproduce it (as minimally and precisely as possible)
Either use the zip or create a project with above settings, the sample will not show a navbar on the second page. Only desktop windows was tested.
UnoApp1.zip
Nuget Package: Uno.WinUI
Package Version(s): 5.2.175
Affected platform(s):
IDE:
Relevant plugins:
Anything else we need to know?