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

MAUI Shell.TitleView: Unable to Remove Padding/Margin on iOS and Android #27290

Open
chadmichaelcox opened this issue Jan 23, 2025 · 0 comments
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout

Comments

@chadmichaelcox
Copy link

I am developing a MAUI mobile application and am struggling to customize the header using the Shell.TitleView. The issue is the persistent padding/margin areas around the TitleView that I cannot seem to modify.

Here are the problems I'm encountering:

iOS: There is extra space on the top and both sides of the TitleView that I cannot remove. The areas marked in red in the first image highlight these problematic spaces.

Android: There is extra space on the left-hand side of the TitleView (marked in red in the second image).

Ignore the red boxes in the TitleView. That was just me blocking out my name.

I have tried setting the following properties in XAML and code-behind, but none of them seem to have any effect:

Padding, Margin, HeightRequest, WidthRequest, HorizontalOptions, VerticalOptions

I also attempted modifying the Shell styles and themes but haven't had any success. I don't even want to move content into the area on iOS, I just want to colorize and in Android, I want to colorize and center everything as it's all shifted right.

Has anyone else experienced this issue? If so, how did you resolve it? Any advice or suggestions would be greatly appreciated!

Attached are the images.

Thank you in advance for your help!

Image

Image

@samhouts samhouts added the area-controls-shell Shell Navigation, Routes, Tabs, Flyout label Jan 24, 2025
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
Projects
None yet
Development

No branches or pull requests

2 participants