Created
August 2, 2018 18:24
-
-
Save adhamali450/023765ebeb6d5f5e4047385cb7a39692 to your computer and use it in GitHub Desktop.
The XAML implementation for the AcrylicBrush
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<customcontrols:AcrylicTabbedPage | |
xmlns:customcontrols="clr-namespace:XTournament.CustomControls" | |
xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:views="clr-namespace:XTournament.Views" | |
xmlns:android="clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core" | |
x:Class="XTournament.Views.MainPage" | |
AcrylicSupportForUwp="True" | |
Title="XTournament" | |
xmlns:windows="clr-namespace:Xamarin.Forms.PlatformConfiguration.WindowsSpecific;assembly=Xamarin.Forms.Core" | |
xmlns:effects="clr-namespace:XTournament.Effects" | |
windows:Page.ToolbarPlacement="Bottom" x:Name="mainPage"> | |
<!--#region Android tabbed page customizations--> | |
<android:TabbedPage.ToolbarPlacement>Top</android:TabbedPage.ToolbarPlacement> | |
<android:TabbedPage.BarItemColor>#66FFFFFF</android:TabbedPage.BarItemColor> | |
<android:TabbedPage.IsSwipePagingEnabled>True</android:TabbedPage.IsSwipePagingEnabled> | |
<android:TabbedPage.BarSelectedItemColor>White</android:TabbedPage.BarSelectedItemColor> | |
<!--#endregion--> | |
<!--#region UWP acrylic brush customizations--> | |
<customcontrols:AcrylicTabbedPage.BackgroundSource>HostBackdrop</customcontrols:AcrylicTabbedPage.BackgroundSource> | |
<customcontrols:AcrylicTabbedPage.TintColor>WhiteSmoke</customcontrols:AcrylicTabbedPage.TintColor> | |
<customcontrols:AcrylicTabbedPage.FallbackColor>WhiteSmoke</customcontrols:AcrylicTabbedPage.FallbackColor> | |
<customcontrols:AcrylicTabbedPage.TintOpacity>0.8</customcontrols:AcrylicTabbedPage.TintOpacity> | |
<!--#endregion--> | |
<!--<customcontrols:AcrylicTabbedPage.Effects> | |
<effects:LinearGradientEffect /> | |
</customcontrols:AcrylicTabbedPage.Effects>--> | |
<!--Toolbar commands--> | |
<customcontrols:AcrylicTabbedPage.ToolbarItems> | |
<ToolbarItem Order="Primary"> | |
<ToolbarItem.Text> | |
<OnPlatform x:TypeArguments="x:String" Android="" WinPhone="Settings" /> | |
</ToolbarItem.Text> | |
<ToolbarItem.Icon> | |
<OnPlatform x:TypeArguments="FileImageSource" Android="ic_action_settings.png" WinPhone="Setting" /> | |
</ToolbarItem.Icon> | |
</ToolbarItem> | |
</customcontrols:AcrylicTabbedPage.ToolbarItems> | |
<views:HomePage Title="Home" Icon="ic_action_home.png"/> | |
<views:RecentsPage Title="Recents" Icon="ic_action_history.png"/> | |
</customcontrols:AcrylicTabbedPage> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment