-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
area-controls-shellShell Navigation, Routes, Tabs, FlyoutShell Navigation, Routes, Tabs, Flyoutarea-controls-titleviewTitleViewTitleViewplatform/androids/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
When using <Shell.TitleView>
in a .NET MAUI Android application, defining a layout with child elements (such as a Grid containing a Label and a Button) causes the child elements to be cleared immediately upon navigating back using the Shell back button.
Slowed down video:
titleview.mp4
Steps to Reproduce
- Define a Shell.TitleView in XAML:
<Shell.TitleView> <Grid ColumnDefinitions="*,*"> <Label Text="New Page" /> <Button Grid.Column="1" Text="Demo button" /> </Grid> </Shell.TitleView>
- Navigate to the page where this TitleView is used.
- Press the Shell back button to return to the previous page.
- Expected outcome: The TitleView's child elements should persist and not be cleared after navigating back.
- Actual outcome: On Android, the child elements of the TitleView are cleared immediately after navigating back.
Link to public reproduction project repository
https://github.com/bhavanesh2001/maui-bugs/tree/shell_title_view
Version with bug
9.0.90 SR9
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
No response
Did you find any workaround?
No response
Relevant log output
Metadata
Metadata
Assignees
Labels
area-controls-shellShell Navigation, Routes, Tabs, FlyoutShell Navigation, Routes, Tabs, Flyoutarea-controls-titleviewTitleViewTitleViewplatform/androids/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working