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

.Net MAUI - Shell Navigation Back button title not works properly - #iOS #12692

Closed
divyesh008 opened this issue Jan 16, 2023 · 1 comment
Closed
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout area-navigation NavigationPage platform/iOS 🍎 t/bug Something isn't working

Comments

@divyesh008
Copy link

Description

I have noticed one issue in the Shell Navigation title. When setting ContentPage's Title property it shows the same text as the Back button also. Used NavigationPage.BackButtonTitle property as well from XAML is still not working.

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="Switch_Bug.HomePage"
             NavigationPage.BackButtonTitle="Back"
             Title="Home Page">
    <VerticalStackLayout>
        <Label 
            Text="Welcome to .NET MAUI!"
            VerticalOptions="Center" 
            HorizontalOptions="Center" />
    </VerticalStackLayout>
</ContentPage>

Result:

Result

Expected result:

In iOS, it should show the Back Button text as "Back" otherwise just show the back button like in Android. But it shows the page's title text. Check the attached screenshot.

Steps to Reproduce

  1. Create a new MAUI project
  2. Create two pages and register it
  3. On the second page set ContentPage's Title and NavigationPage.BackButton title property
  4. Perform Shell navigation from one page to second page
  5. Run the app and check the output

Link to public reproduction project repository

https://github.com/divyesh008/MauiSwitch_Bug.git

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android

Affected platform versions

iOS 15, Android 10, 11 and up

Did you find any workaround?

No

Relevant log output

No response

@divyesh008 divyesh008 added the t/bug Something isn't working label Jan 16, 2023
@jsuarezruiz jsuarezruiz added area-navigation NavigationPage area-controls-shell Shell Navigation, Routes, Tabs, Flyout labels Jan 16, 2023
@PureWeen
Copy link
Member

Duplicate of #11691

@PureWeen PureWeen marked this as a duplicate of #11691 Jan 17, 2023
@PureWeen PureWeen closed this as not planned Won't fix, can't repro, duplicate, stale Jan 17, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Feb 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout area-navigation NavigationPage platform/iOS 🍎 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants