-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.xaml
61 lines (53 loc) · 2.17 KB
/
App.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="UTF-8" ?>
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:SampleApp"
x:Class="SampleApp.App">
<Application.Resources>
<ResourceDictionary>
<Color x:Key="PageBackgroundColor">white</Color>
<Color x:Key="PrimaryTextColor">White</Color>
<Style TargetType="Label">
<Setter Property="TextColor" Value="{DynamicResource PrimaryTextColor}" />
<Setter Property="FontFamily" Value="OpenSansRegular" />
</Style>
<Style TargetType="Button">
<Setter Property="TextColor" Value="{DynamicResource PrimaryTextColor}" />
<Setter Property="FontFamily" Value="OpenSansRegular" />
<Setter Property="BackgroundColor" Value="#2b0b98" />
<Setter Property="Padding" Value="14,10" />
</Style>
</ResourceDictionary>
</Application.Resources>
<Application.MainPage>
<Shell BackgroundColor="Pink" >
<TabBar
Shell.TabBarTitleColor="Red"
Shell.TabBarBackgroundColor="White"
Shell.TabBarForegroundColor="Red"
Shell.TabBarDisabledColor="Green"
Shell.TabBarUnselectedColor="Gray">
<Tab >
<ShellContent Title="Login" Route="login">
<ShellContent.ContentTemplate>
<DataTemplate>
<ContentPage Shell.BackgroundColor="Red" Shell.NavBarIsVisible="False" NavigationPage.HasNavigationBar="False">
</ContentPage>
</DataTemplate>
</ShellContent.ContentTemplate>
</ShellContent>
</Tab>
<Tab Title="Sample">
<ShellContent Title="Sample" Route="sample">
<ShellContent.ContentTemplate>
<DataTemplate>
<ContentPage>
</ContentPage>
</DataTemplate>
</ShellContent.ContentTemplate>
</ShellContent>
</Tab>
</TabBar>
</Shell>
</Application.MainPage>
</Application>