-
-
Notifications
You must be signed in to change notification settings - Fork 194
/
Copy pathAppShell.xaml
37 lines (36 loc) · 1.19 KB
/
AppShell.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="UTF-8" ?>
<Shell
x:Class="MauiShellCustomization.AppShell"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:MauiShellCustomization"
FlyoutBehavior="Disabled">
<Shell.ToolbarItems>
<ToolbarItem Text="Toolbar 1"
IconImageSource="dotnet_bot.png"/>
<ToolbarItem Text="Toolbar 2"
IconImageSource="dotnet_bot.png"/>
</Shell.ToolbarItems>
<local:CustomTabBar
x:DataType="local:AppShell"
CenterViewText="+"
CenterViewVisible="True"
CenterViewBackgroundColor="Red"
CenterViewCommand="{Binding CenterViewCommand}">
<!-- <local:CustomTabBar.CenterViewImageSource> -->
<!-- <FileImageSource File="dotnet_bot.png"></FileImageSource> -->
<!-- </local:CustomTabBar.CenterViewImageSource> -->
<Tab Title="Tab1" Icon="dotnet_bot.png">
<ShellContent
Title="Page1"
ContentTemplate="{DataTemplate local:Page1}"
Route="Page1" />
</Tab>
<Tab Title="Tab2" Icon="dotnet_bot.png">
<ShellContent
Title="Page2"
ContentTemplate="{DataTemplate local:Page2}"
Route="Page2" />
</Tab>
</local:CustomTabBar>
</Shell>