Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

XamlStyles FontSize Not working

$
0
0

I'm trying to implement XamlStyles in my app, but the FontSize doesn't work. TextColor, Font, HorizontalTextAlignment, Margin all seem to be working, but i'm not sure what's going on with FontSize..

any ideas how to resolve this please?

In my Page:

<Label Text ="Edit Profile" Style="{StaticResource HeaderStyle}" />

In App.Xaml:

       <Style x:Key="HeaderStyle" TargetType="Label">

            <Setter Property="TextColor"    Value = "Red"/>
            <Setter Property="Font"         Value = "Hind-Bold"/>
            <Setter Property="HorizontalTextAlignment"    Value = "Center"/>
            <Setter Property="Margin"    Value = "0,60,0,0"/>

            <Setter Property="FontSize" Value="30"/>

        </Style>


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>