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

OnPlatform in System:Double, possible ?

$
0
0

App.xaml:

  <System:Double x:Key="FontSizeSmall">
    <OnPlatform x:TypeArguments="System:Double" Android="10" iOS="9" />
  </System:Double>

Page1.xaml:

   <Label Text="MyText" FontSize="{StaticResource FontSizeSmall}"  />

This does not work.

If i use this it does work:

  <System:Double x:Key="FontSizeSmall">10</System:Double>

What am i doing wrong ?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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