Skip to content

[iOS/Mac] ShellContent Title Does Not Update at Runtime #26049

@devanathan-vaithiyanathan

Description

Description

The issue occurs when the title of ShellContent does not update dynamically at runtime. Even after modifying the Title property of ShellContent via button click, the title remains unchanged in the UI.

Steps to Reproduce

Create a TabBar with nested ShellContent items.
Add a button that changes the Title of the ShellContent when clicked.
Run the app.
Click the "Change Title" button.

AppShell.xaml

<TabBar AutomationId="TabBar">
    <Tab Title="Nested Tabs" AutomationId="tabbar">
        <ShellContent x:Name="tab" Title="Home">
            <ContentPage>
                <StackLayout HorizontalOptions="Center" Spacing="30">
                    <Button Text="Change Title" AutomationId="ChangeShellContentTitle" VerticalOptions="Center" HorizontalOptions="Center" WidthRequest="100" HeightRequest="40" Clicked="OnButtonClicked"/>
                </StackLayout>
            </ContentPage>
        </ShellContent>

        <ShellContent Title="Settings">
            <ContentPage>
                <Label Text="This is Settings page"/>
            </ContentPage>
        </ShellContent>
    </Tab>
</TabBar>

AppShell.xaml.cs

private void OnButtonClicked(object sender, EventArgs e)
{
    tab.Title = "New Title";
}

Expected Behavior: The title of the ShellContent (tab) should change to "New Title" when the button is clicked.

Actual Behavior: The title remains as "Home" and does not update when the button is clicked.

Link to public reproduction project repository

ShellContentTitleIssue

Version with bug

9.0.10 SR1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, macOS

Affected platform versions

iOS 18.0, mac 15.1

Did you find any workaround?

Not yet.

Relevant log output

Metadata

Metadata

Assignees

Labels

area-controls-shellShell Navigation, Routes, Tabs, Flyoutpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/iosplatform/macosmacOS / Mac Catalysts/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions