shell with flyoutitem

pull/128/head
Antonio Borrego 2022-05-13 11:13:56 +02:00
parent 8e45d5e757
commit 5a5f4897b6
1 changed files with 38 additions and 16 deletions

View File

@ -19,20 +19,42 @@
</Grid> </Grid>
</Shell.FlyoutHeader> </Shell.FlyoutHeader>
<ShellContent Title="{Binding Discover.Title}" <FlyoutItem Title="{Binding Discover.Title}"
Icon="{AppThemeBinding Light=discover.png, Dark=discover_dark.png}" Icon="{AppThemeBinding Light=discover.png, Dark=discover_dark.png}">
ContentTemplate="{DataTemplate pages:DiscoverPage}"/> <Tab>
<ShellContent Title="{Binding Subscriptions.Title}" <ShellContent ContentTemplate="{DataTemplate pages:DiscoverPage}"/>
Icon="{AppThemeBinding Light=subscriptions.png, Dark=subscriptions_dark.png}" </Tab>
ContentTemplate="{DataTemplate pages:SubscriptionsPage}" /> </FlyoutItem>
<ShellContent Title="{Binding ListenLater.Title}"
Icon="{AppThemeBinding Light=clock.png, Dark=clock_dark.png}" <FlyoutItem Title="{Binding Subscriptions.Title}"
ContentTemplate="{DataTemplate pages:ListenLaterPage}" /> Icon="{AppThemeBinding Light=subscriptions.png, Dark=subscriptions_dark.png}">
<ShellContent Title="{Binding ListenTogether.Title}" <Tab>
Icon="{AppThemeBinding Light=listentogether.png, Dark=listentogether_dark.png}" <ShellContent ContentTemplate="{DataTemplate pages:SubscriptionsPage}" />
FlyoutItemIsVisible="{x:Static root:Config.ListenTogetherIsVisible}" </Tab>
ContentTemplate="{DataTemplate pages:ListenTogetherPage}" /> </FlyoutItem>
<ShellContent Title="{Binding Settings.Title}"
Icon="{AppThemeBinding Light=settings.png, Dark=settings_dark.png}" <FlyoutItem Title="{Binding ListenLater.Title}"
ContentTemplate="{DataTemplate pages:SettingsPage}" /> Icon="{AppThemeBinding Light=clock.png, Dark=clock_dark.png}">
<Tab>
<ShellContent ContentTemplate="{DataTemplate pages:ListenLaterPage}" />
</Tab>
</FlyoutItem>
<FlyoutItem Title="{Binding ListenTogether.Title}"
Icon="{AppThemeBinding Light=listentogether.png, Dark=listentogether_dark.png}"
FlyoutItemIsVisible="{x:Static root:Config.ListenTogetherIsVisible}">
<Tab>
<ShellContent
ContentTemplate="{DataTemplate pages:ListenTogetherPage}" />
</Tab>
</FlyoutItem>
<FlyoutItem Title="{Binding Settings.Title}"
Icon="{AppThemeBinding Light=settings.png, Dark=settings_dark.png}">
<Tab>
<ShellContent
ContentTemplate="{DataTemplate pages:SettingsPage}" />
</Tab>
</FlyoutItem>
</Shell> </Shell>