Add project files.
This commit is contained in:
35
MonkeyFinder/AppShell.xaml
Normal file
35
MonkeyFinder/AppShell.xaml
Normal file
@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Shell xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="MonkeyFinder.AppShell"
|
||||
xmlns:view="clr-namespace:MonkeyFinder.View"
|
||||
FlyoutBehavior="Disabled">
|
||||
|
||||
|
||||
|
||||
<Shell.Resources>
|
||||
<ResourceDictionary>
|
||||
<Style x:Key="BaseStyle" TargetType="Element">
|
||||
<Setter Property="Shell.BackgroundColor" Value="{StaticResource Primary}" />
|
||||
<Setter Property="Shell.ForegroundColor" Value="{OnPlatform WinUI={StaticResource Primary}, Default=White}" />
|
||||
<Setter Property="Shell.TitleColor" Value="White" />
|
||||
<Setter Property="Shell.DisabledColor" Value="#B4FFFFFF" />
|
||||
<Setter Property="Shell.UnselectedColor" Value="{AppThemeBinding Dark=#95FFFFFF, Light=#95000000}" />
|
||||
<Setter Property="Shell.TabBarBackgroundColor" Value="{AppThemeBinding Dark={StaticResource DarkBackground}, Light={StaticResource LightBackground}}" />
|
||||
<Setter Property="Shell.TabBarForegroundColor" Value="{AppThemeBinding Dark={StaticResource LightBackground}, Light={StaticResource DarkBackground}}" />
|
||||
<Setter Property="Shell.TabBarUnselectedColor" Value="{AppThemeBinding Dark=#95FFFFFF, Light=#95000000}" />
|
||||
<Setter Property="Shell.TabBarTitleColor" Value="{AppThemeBinding Dark={StaticResource LightBackground}, Light={StaticResource DarkBackground}}" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource BaseStyle}" TargetType="ShellItem" ApplyToDerivedTypes="True" />
|
||||
</ResourceDictionary>
|
||||
</Shell.Resources>
|
||||
|
||||
|
||||
|
||||
<ShellContent
|
||||
Shell.NavBarIsVisible="true"
|
||||
Title="Monkeys"
|
||||
ContentTemplate="{DataTemplate view:MainPage}"
|
||||
Route="MainPage" />
|
||||
|
||||
</Shell>
|
||||
Reference in New Issue
Block a user