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
<Shell.FlyoutHeaderTemplate> | |
<DataTemplate> | |
<Grid> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="100" /> | |
</Grid.RowDefinitions> | |
<magicGradients:GradientView VerticalOptions="FillAndExpand" > | |
<magicGradients:GradientView.GradientSource> | |
<magicGradients:GradientCollection> | |
<magicGradients:RadialGradient Center="0.5,0.5" Shape="Circle" Size="ClosestSide"> |
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
<Shell.FlyoutHeaderTemplate> | |
<DataTemplate> | |
<Grid> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="100" /> | |
</Grid.RowDefinitions> | |
<magicGradients:GradientView VerticalOptions="FillAndExpand" > | |
<magicGradients:GradientView.GradientSource> | |
<magicGradients:CssGradientSource> | |
<x:String> |
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
<Shell.FlyoutHeaderTemplate> | |
<DataTemplate> | |
<Grid> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="100" /> | |
</Grid.RowDefinitions> | |
<magicGradients:GradientView VerticalOptions="FillAndExpand" > | |
<magicGradients:GradientView.GradientSource> | |
<magicGradients:CssGradientSource> | |
<x:String> |
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
<Shell.FlyoutHeaderTemplate> | |
<DataTemplate> | |
<Grid> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="100" /> | |
</Grid.RowDefinitions> | |
<magicGradients:GradientView VerticalOptions="FillAndExpand" > | |
<magicGradients:GradientView.GradientSource> | |
<magicGradients:CssGradientSource> | |
<x:String> |
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
<Shell.FlyoutHeaderTemplate> | |
<DataTemplate> | |
<Grid> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="100" /> | |
</Grid.RowDefinitions> | |
<magicGradients:GradientView VerticalOptions="FillAndExpand" > | |
<magicGradients:GradientView.GradientSource> | |
<magicGradients:CssGradientSource> | |
<x:String> |
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
<Shell.FlyoutHeaderTemplate> | |
<DataTemplate> | |
<Grid> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="100" /> | |
</Grid.RowDefinitions> | |
<magicGradients:GradientView VerticalOptions="FillAndExpand" > | |
<magicGradients:GradientView.GradientSource> | |
<magicGradients:CssGradientSource> | |
<x:String> |
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
[assembly: StyleProperty("-xf-vertical-text-alignment", typeof(Label), nameof(TextAlignmentElement.VerticalTextAlignmentProperty))] | |
//Definition of VerticalTextAlignmentProperty has type of TextAlignment | |
static class TextAlignmentElement | |
{ | |
public static readonly BindableProperty VerticalTextAlignmentProperty = | |
BindableProperty.Create(nameof(ITextAlignmentElement.VerticalTextAlignment), typeof(TextAlignment), typeof(ITextAlignmentElement), TextAlignment.Center); | |
} | |
//And TextAlignment has assigned TypeConverter to convert css string to enum | |
[TypeConverter(typeof(TextAlignmentConverter))] | |
public enum TextAlignment |
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
public static class StyleSheets | |
{ | |
public static void RegisterStyle(string name, Type targetType, string bindablePropertyName) | |
{ | |
var stylePropertyInfo = typeof(Xamarin.Forms.Internals.Registrar).GetProperty("StyleProperties", | |
BindingFlags.Static | BindingFlags.NonPublic); | |
if (stylePropertyInfo == null) | |
return; | |
var styleProperties = stylePropertyInfo.GetValue(null); |
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" ?> | |
<Application 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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:magicGradients="clr-namespace:MagicGradients;assembly=MagicGradients" | |
mc:Ignorable="d" | |
x:Class="GradientedTabbedApp.App"> | |
<Application.Resources> | |
<Style TargetType="Label"> |
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" ?> | |
<Application 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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:magicGradients="clr-namespace:MagicGradients;assembly=MagicGradients" | |
mc:Ignorable="d" | |
x:Class="GradientedTabbedApp.App"> | |
<Application.Resources> | |
<Style TargetType="Label"> |