Files
HomePantry-MAUI/AppShell.xaml
T
2026-07-16 12:25:33 +02:00

75 lines
2.6 KiB
XML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="UTF-8" ?>
<Shell
x:Class="HomePantry.AppShell"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:views="clr-namespace:HomePantry.Views"
Title="HomePantry"
FlyoutBehavior="Flyout">
<!-- <ShellContent
Title="Home"
ContentTemplate="{DataTemplate views:MainPage}"
Route="MainPage" />
<ShellContent
Title="Spizarnia"
ContentTemplate="{DataTemplate views:PantryPage}"
Route="PantryPage" />
<ShellContent
Title="Dodaj produkt"
ContentTemplate="{DataTemplate views:AddProductPage}"
Route="AddProductPage" /> -->
<!-- <TabBar>
<Tab Title="Spiżarnia">
<Tab.Icon>
<FontImageSource Glyph="🏠" />
</Tab.Icon>
<ShellContent ContentTemplate="{DataTemplate views:PantryPage}" />
</Tab>
<Tab Title="Dodaj">
<Tab.Icon>
<FontImageSource Glyph="" />
</Tab.Icon>
<ShellContent ContentTemplate="{DataTemplate views:AddProductPage}" />
</Tab>
<Tab Title="Kategorie">
<Tab.Icon>
<FontImageSource Glyph="📄" />
</Tab.Icon>
<ShellContent ContentTemplate="{DataTemplate views:PantryPage}" />
</Tab>
<Tab Title="Ustawienia">
<Tab.Icon>
<FontImageSource Glyph="⚙️" />
</Tab.Icon>
<ShellContent ContentTemplate="{DataTemplate views:AddProductPage}" />
</Tab>
</TabBar> -->
<Shell.FlyoutHeader>
<Grid HeightRequest="120" BackgroundColor="#2E7D32">
<VerticalStackLayout VerticalOptions="Center" Margin="20, 0">
<Label Text="🏠 Domowa Spiżarnia" TextColor="White" FontSize="22" FontAttributes="Bold" />
<Label Text="Zarządzaj swoimi produktami" TextColor="#C8E6C9" FontSize="13" />
</VerticalStackLayout>
</Grid>
</Shell.FlyoutHeader>
<FlyoutItem Title="Spiżarnia">
<ShellContent ContentTemplate="{DataTemplate views:PantryPage}" />
</FlyoutItem>
<FlyoutItem Title="Dodaj">
<ShellContent ContentTemplate="{DataTemplate views:AddProductPage}" />
</FlyoutItem>
<FlyoutItem Title="Kategorie">
<ShellContent ContentTemplate="{DataTemplate views:CategoriesPage}" />
</FlyoutItem>
<FlyoutItem Title="Ustawienia">
<ShellContent ContentTemplate="{DataTemplate views:AddProductPage}" />
</FlyoutItem>
</Shell>