Skip to content

Instantly share code, notes, and snippets.

@aktxyz
Created August 18, 2020 22:33
Show Gist options
  • Save aktxyz/e9c89743bf7c46acafb6a49654185e8a to your computer and use it in GitHub Desktop.
Save aktxyz/e9c89743bf7c46acafb6a49654185e8a to your computer and use it in GitHub Desktop.
!!!!!!!!!!!!!!! FIRST SHELL
<?xml version="1.0" encoding="UTF-8" ?>
<Shell
x:Class="Creamy.Ux.Mobile.Page.User.Access.AppShellAccess"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:local="clr-namespace:Creamy.Ux.Mobile.Views"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ns_pageAccessSignin="clr-namespace:Creamy.Ux.Mobile.Page.User.Access.Signin"
Title="AppShellAccess"
Shell.BackgroundColor="#194674"
Shell.FlyoutBehavior="Disabled"
Shell.NavBarIsVisible="False"
Shell.TabBarBackgroundColor="#194674"
Shell.TabBarIsVisible="True"
mc:Ignorable="d">
<Shell.Resources>
<ResourceDictionary>
<Color x:Key="NavigationPrimary">#2196F3</Color>
<Style x:Key="BaseStyle" TargetType="Element">
<Setter Property="Shell.BackgroundColor" Value="{StaticResource Primary}" />
<Setter Property="Shell.ForegroundColor" Value="White" />
<Setter Property="Shell.TitleColor" Value="White" />
<Setter Property="Shell.DisabledColor" Value="#B4FFFFFF" />
<Setter Property="Shell.UnselectedColor" Value="#95FFFFFF" />
<Setter Property="Shell.TabBarBackgroundColor" Value="{StaticResource Primary}" />
<Setter Property="Shell.TabBarForegroundColor" Value="White" />
<Setter Property="Shell.TabBarUnselectedColor" Value="#95FFFFFF" />
<Setter Property="Shell.TabBarTitleColor" Value="White" />
</Style>
<Style BasedOn="{StaticResource BaseStyle}" TargetType="TabBar" />
</ResourceDictionary>
</Shell.Resources>
<!-- ~======================================================================================= -->
<TabBar x:Name="xTabBar">
<Tab Title="Login" Icon="tab_feed.png">
<ShellContent ContentTemplate="{DataTemplate ns_pageAccessSignin:PageIndex}" />
</Tab>
<Tab Title="Login2" Icon="tab_feed.png">
<ShellContent ContentTemplate="{DataTemplate ns_pageAccessSignin:PageIndex}" />
</Tab>
</TabBar>
<!-- ~======================================================================================= -->
</Shell>
!!!!!!!!!!!!!!! SECOND SHELL
<?xml version="1.0" encoding="UTF-8" ?>
<Shell
x:Class="Creamy.Ux.Mobile.AppShell"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:local="clr-namespace:Creamy.Ux.Mobile.Views"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ns_pageUserSecureListAcct="clr-namespace:Creamy.Ux.Mobile.Page.User.Secure.List.Food"
Title="XamarinShell1"
BackgroundColor="{StaticResource Primary}"
Visual="Material"
mc:Ignorable="d">
<Shell.Resources>
<ResourceDictionary>
<Color x:Key="NavigationPrimary">#194674</Color>
<Style x:Key="BaseStyle" TargetType="Element">
<Setter Property="Shell.BackgroundColor" Value="{StaticResource Primary}" />
<Setter Property="Shell.ForegroundColor" Value="White" />
<Setter Property="Shell.TitleColor" Value="White" />
<Setter Property="Shell.DisabledColor" Value="#B4FFFFFF" />
<Setter Property="Shell.UnselectedColor" Value="#95FFFFFF" />
<Setter Property="Shell.TabBarBackgroundColor" Value="{StaticResource Primary}" />
<Setter Property="Shell.TabBarForegroundColor" Value="White" />
<Setter Property="Shell.TabBarUnselectedColor" Value="#95FFFFFF" />
<Setter Property="Shell.TabBarTitleColor" Value="White" />
</Style>
<Style BasedOn="{StaticResource BaseStyle}" TargetType="TabBar" />
</ResourceDictionary>
</Shell.Resources>
<!-- ~======================================================================================= -->
<TabBar x:Name="xTabBar">
<Tab Title="Home" Icon="tab_feed.png">
<ShellContent ContentTemplate="{DataTemplate ns_pageUserSecureListFood:PageIndex}" />
</Tab>
<Tab Title="Home2" Icon="tab_feed.png">
<ShellContent ContentTemplate="{DataTemplate ns_pageUserSecureListFood:PageIndex}" />
</Tab>
</TabBar>
<!-- ~======================================================================================= -->
</Shell>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment