unoplatform / uno.toolkit.ui

A set of custom controls for the WinUI and the Uno Platform not offered out of the box by WinUI, such as Card, TabBar, NavigationBar, etc.
https://platform.uno/
MIT License
82 stars 27 forks source link

Navigationbar invisible until window is resized on sample #1180

Open Levi--G opened 2 months ago

Levi--G commented 2 months ago

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?

kazo0 commented 1 month ago

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