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

Having different FontSize per platform from XAML

$
0
0

hello I have the following style defined for a label but the font size does not change, is what I am doing possible, if so, what am I doing wrong ?

<Style x:Key="NameLabelStyle" TargetType="Label">
        <Setter Property="FontAttributes" Value="Bold"/>
        <Setter Property="FontSize">
          <Setter.Value>
            <OnPlatform x:TypeArguments="x:String"
                        WinPhone="Large"
                        Android="Medium"
                        iOS="Large"/>
          </Setter.Value>
        </Setter>
      </Style>

Viewing all articles
Browse latest Browse all 91519

Trending Articles



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