Skip to content

Instantly share code, notes, and snippets.

@adhamali450
Created August 2, 2018 17:25
Show Gist options
  • Save adhamali450/cd98340971921a52fc5dcbbebf015eb4 to your computer and use it in GitHub Desktop.
Save adhamali450/cd98340971921a52fc5dcbbebf015eb4 to your computer and use it in GitHub Desktop.
The shared control for the custom tapped page that will implement Acrylic materials
using System;
using System.Collections.Generic;
using System.Text;
using Xamarin.Forms;
using XTournament.Models;
namespace XTournament.CustomControls
{
public class AcrylicTabbedPage : TabbedPage
{
public static readonly BindableProperty AcrylicSupportForUwpProperty = BindableProperty.Create("AcrylicSupportForUwp", typeof(bool), typeof(AcrylicTabbedPage), default(bool));
public bool AcrylicSupportForUwp
{
get { return (bool)GetValue(AcrylicSupportForUwpProperty); }
set { SetValue(AcrylicSupportForUwpProperty, value); }
}
public static readonly BindableProperty BackgroundSourceProperty = BindableProperty.Create("BackgroundSource", typeof(BackgroundSource), typeof(AcrylicTabbedPage), default(BackgroundSource));
public BackgroundSource BackgroundSource
{
get { return (BackgroundSource)GetValue(BackgroundSourceProperty); }
set { SetValue(BackgroundSourceProperty, value); }
}
public static readonly BindableProperty TintColorProperty = BindableProperty.Create("TintColor", typeof(Color), typeof(AcrylicTabbedPage), default(Color));
public Color TintColor
{
get { return (Color)GetValue(TintColorProperty); }
set { SetValue(TintColorProperty, value); }
}
public static readonly BindableProperty FallbackColorProperty = BindableProperty.Create("FallbackColor", typeof(Color), typeof(AcrylicTabbedPage), default(Color));
public Color FallbackColor
{
get { return (Color)GetValue(FallbackColorProperty); }
set { SetValue(FallbackColorProperty, value); }
}
public static readonly BindableProperty TintOpacityProperty = BindableProperty.Create("TintOpacity", typeof(double), typeof(AcrylicTabbedPage), default(double));
public double TintOpacity
{
get { return (double)GetValue(TintOpacityProperty); }
set { SetValue(TintOpacityProperty, value); }
}
public static readonly BindableProperty HeaderBackgroundProperty = BindableProperty.Create("HeaderBackground", typeof(Color), typeof(AcrylicTabbedPage), default(Color));
public Color HeaderBackground
{
get { return (Color)GetValue(HeaderBackgroundProperty); }
set { SetValue(HeaderBackgroundProperty, value); }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment