VladislavAntonyuk / vladislavantonyuk.github.io

https://vladislavantonyuk.github.io
2 stars 1 forks source link

Customizing-.NET-MAUI-Shell - when navigate next page #117

Open elfiservice opened 1 week ago

elfiservice commented 1 week ago

Hi I`m trying to customize the default shell topbar in Android and iOS

I would do like to set some rounded corners on it

i`m trying to follow this https://vladislavantonyuk.github.io/articles/Customizing-.NET-MAUI-Shell/

I almost get done, but when a navigate to next page the things does not going right. see images

First PAge is it OK

Screenshot 2024-10-10 at 11 18 24

next Page is not (like a styled topbar is over the default one)

Screenshot 2024-10-10 at 11 24 39

there are any way to do that ? tks

VladislavAntonyuk commented 1 week ago

I can take a look if you create a small reproduction sample

elfiservice commented 1 week ago

Tks for the attention @VladislavAntonyuk

I saw that the first page is set in AppShell.xaml <ShellContent Title="" ContentTemplate="{DataTemplate local:SettingsPage}" Route="SettingsPage" />

and the next page is set in AppShell.xaml.cs Routing.RegisterRoute(nameof(LoginPage), typeof(LoginPage)); using Routing because of the navigate stack handler, like to set the Backbutton.

When a put the LoginPage at the <ShellContent... too it works as expected But the Backbutton disappear

elfiservice commented 1 week ago

I can take a look if you create a small reproduction sample

Done, follow the little project with this behaviour occurring

thks