Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Shell.TitleView doesn't appear when specified on the Shell itself. #6941

Closed
andriysavin opened this issue Jul 21, 2019 · 2 comments
Closed
Labels
s/unverified New report that has yet to be verified t/bug 🐛

Comments

@andriysavin
Copy link

andriysavin commented Jul 21, 2019

The docs state regarding Shell.TitleView attached property that:

While this property can be set on a subclassed Shell object, ...

However, when I do exactly that nothing is displayed in the title. Specifying the same title view on a child content page works. Here is a sample code snipped:

<Shell xmlns="http://xamarin.com/schemas/2014/forms"
       xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
       xmlns:views="clr-namespace:ShellTitleViewBug"
       x:Class="ShellTitleViewBug.AppShell">
    <Shell.TitleView>
        <Label Text="Title View Label"
               HorizontalOptions="Center"
               VerticalOptions="Center" />
    </Shell.TitleView>
    <FlyoutItem Title="Flyout Item 1">
        <Tab Title="Tab 1">
            <ShellContent Title="Tab 1 Content">
                <views:Page1/>
            </ShellContent>
        </Tab>
    </FlyoutItem>
</Shell>
  • IDE: VS 16.1.6
  • Platform Target Frameworks:
    • Android: 9.0
  • Xamarin.Forms 4.0 and 4.1
  • Affected Devices: Emulator

Link to a sample project on OneDrive: https://1drv.ms/u/s!AuaAKPMkiTEAxtYWoPPE9RWK6w6sLw

Screenshots
image

@andriysavin andriysavin added s/unverified New report that has yet to be verified t/bug 🐛 labels Jul 21, 2019
@PureWeen
Copy link
Contributor

duplicate #4650

@andriysavin
Copy link
Author

@PureWeen well, even though the problem is described in that issue too, I find incorrect that it's called an "improvement" while it's obviously a bug, as the behavior doesn't much the documentation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
s/unverified New report that has yet to be verified t/bug 🐛
Projects
None yet
Development

No branches or pull requests

2 participants