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

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

Open
elfiservice opened this issue Oct 11, 2024 · 0 comments
Open

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

elfiservice opened this issue Oct 11, 2024 · 0 comments
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout platform/android 🤖 t/bug Something isn't working

Comments

@elfiservice
Copy link

Description

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

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..., it works as expected

  • But the Backbutton disappear

Steps to Reproduce

  1. I provided a little basic project that reproduce this behaviour :
  1. I implemented this https://vladislavantonyuk.github.io/articles/Customizing-.NET-MAUI-Shell/ (only to Android platform)

Just run the App and navigate to next page clicking in the button to see the behaviour

Link to public reproduction project repository

https:/elfiservice/maui-customizing-shell-test

Version with bug

8.0.82 SR8.2

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android SDK 34

Did you find any workaround?

No response

Relevant log output

No response

@elfiservice elfiservice added the t/bug Something isn't working label Oct 11, 2024
@samhouts samhouts added platform/android 🤖 area-controls-shell Shell Navigation, Routes, Tabs, Flyout labels Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout platform/android 🤖 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants