Skip to content

Instantly share code, notes, and snippets.

@rdelrosario
Created May 20, 2018 22:40
Show Gist options
  • Select an option

  • Save rdelrosario/82283a0b822f9dd3acfdec85565feb35 to your computer and use it in GitHub Desktop.

Select an option

Save rdelrosario/82283a0b822f9dd3acfdec85565feb35 to your computer and use it in GitHub Desktop.
Kerning XAML
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:CustomKerningSample"
xmlns:controls="clr-namespace:CustomKerningSample.Controls"
x:Class="CustomKerningSample.MainPage">
<StackLayout VerticalOptions="CenterAndExpand"
HorizontalOptions="FillAndExpand"
Padding="20">
<Picker x:Name="picker"
Title="Select Kerning"
SelectedIndexChanged="Handle_SelectedIndexChanged">
<Picker.ItemsSource>
<x:Array Type="{x:Type x:Double}">
<x:Double>0</x:Double>
<x:Double>10</x:Double>
<x:Double>20</x:Double>
<x:Double>40</x:Double>
<x:Double>55</x:Double>
</x:Array>
</Picker.ItemsSource>
</Picker>
<controls:CustomLabel Text="Hello"
HorizontalTextAlignment="Center"
HorizontalOptions="FillAndExpand"
x:Name="element"/>
</StackLayout>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment