Created
January 18, 2017 16:35
-
-
Save chagretes/3422bb3c123f57cba56c0b895d8ffb05 to your computer and use it in GitHub Desktop.
Xamarin aplication resource style using OnPlatform
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
<Application.Resources> | |
<ResourceDictionary> | |
<OnPlatform x:TypeArguments="Font" Android="30" iOS="40" WinPhone="20" x:Key="TitleFontSize" /> | |
<Style x:Key="MyTitleLabel" TargetType="Label" BaseResourceKey="TitleStyle"> | |
<Setter Property="LineBreakMode" Value="TailTruncation" /> | |
<Setter Property="XAlign" Value="Center" /> | |
<Setter Property="Font" Value="{StaticResource TitleFontSize}" /> | |
</Style> | |
</ResourceDictionary> | |
</Application.Resources> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment