|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<Shell xmlns="http://xamarin.com/schemas/2014/forms" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
| 4 | + xmlns:local="clr-namespace:BasicPlainTextReaderApp.Views" |
| 5 | + Title="BasicPlainTextReaderApp" |
| 6 | + x:Class="BasicPlainTextReaderApp.AppShellOpenWith"> |
| 7 | + |
| 8 | + <Shell.Resources> |
| 9 | + <ResourceDictionary> |
| 10 | + <Style x:Key="BaseStyle" TargetType="Element"> |
| 11 | + <Setter Property="Shell.BackgroundColor" Value="{StaticResource Primary}" /> |
| 12 | + <Setter Property="Shell.ForegroundColor" Value="White" /> |
| 13 | + <Setter Property="Shell.TitleColor" Value="White" /> |
| 14 | + <Setter Property="Shell.DisabledColor" Value="#B4FFFFFF" /> |
| 15 | + <Setter Property="Shell.UnselectedColor" Value="#95FFFFFF" /> |
| 16 | + <Setter Property="Shell.TabBarBackgroundColor" Value="{StaticResource Primary}" /> |
| 17 | + <Setter Property="Shell.TabBarForegroundColor" Value="White"/> |
| 18 | + <Setter Property="Shell.TabBarUnselectedColor" Value="#95FFFFFF"/> |
| 19 | + <Setter Property="Shell.TabBarTitleColor" Value="White"/> |
| 20 | + </Style> |
| 21 | + <Style TargetType="TabBar" BasedOn="{StaticResource BaseStyle}" /> |
| 22 | + <Style TargetType="FlyoutItem" BasedOn="{StaticResource BaseStyle}" /> |
| 23 | + |
| 24 | + <Style Class="FlyoutItemLabelStyle" TargetType="Label"> |
| 25 | + <Setter Property="TextColor" Value="{StaticResource Primary}"></Setter> |
| 26 | + </Style> |
| 27 | + <Style Class="FlyoutItemLayoutStyle" TargetType="Layout" ApplyToDerivedTypes="True"> |
| 28 | + <Setter Property="BackgroundColor" Value="{StaticResource SelectedItem}"></Setter> |
| 29 | + <Setter Property="VisualStateManager.VisualStateGroups"> |
| 30 | + <VisualStateGroupList> |
| 31 | + <VisualStateGroup x:Name="CommonStates"> |
| 32 | + <VisualState x:Name="Normal"> |
| 33 | + <VisualState.Setters> |
| 34 | + <Setter Property="BackgroundColor" Value="{StaticResource SelectedItem}" /> |
| 35 | + <Setter TargetName="FlyoutItemLabel" Property="Label.TextColor" Value="{StaticResource Primary}" /> |
| 36 | + </VisualState.Setters> |
| 37 | + </VisualState> |
| 38 | + <VisualState x:Name="Selected"> |
| 39 | + <VisualState.Setters> |
| 40 | + <Setter Property="BackgroundColor" Value="{StaticResource SelectedItem}" /> |
| 41 | + </VisualState.Setters> |
| 42 | + </VisualState> |
| 43 | + </VisualStateGroup> |
| 44 | + </VisualStateGroupList> |
| 45 | + </Setter> |
| 46 | + </Style> |
| 47 | + |
| 48 | + </ResourceDictionary> |
| 49 | + </Shell.Resources> |
| 50 | + |
| 51 | + |
| 52 | + <MenuItem Text="About" StyleClass="MenuItemLayoutStyle" Clicked="OnMenuItemClicked" IconImageSource="tab_about.png"> |
| 53 | + </MenuItem> |
| 54 | + |
| 55 | + <FlyoutItem FlyoutDisplayOptions="AsMultipleItems"> |
| 56 | + <ShellContent Title="Current text" Icon="tab_feed.png" Route="TextPage" ContentTemplate="{DataTemplate local:TextPage}" x:Name="TextPageShellContent" /> |
| 57 | + </FlyoutItem> |
| 58 | + |
| 59 | + |
| 60 | +</Shell> |
0 commit comments