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

The attachable property Phone was not found in type OnIdiom

$
0
0

I started getting this XAML warning after the latest XF version on VS 2017 v15.7.1.
This is the code in App.xaml:

<OnIdiom x:Key="largeFontSize"  x:TypeArguments="x:Double">
    <OnIdiom.Phone>
        <OnPlatform x:TypeArguments="x:Double" iOS="23" Android="23"  />
    </OnIdiom.Phone>
    <OnIdiom.Tablet>
        <OnPlatform x:TypeArguments="x:Double" iOS="28" Android="28"  />
    </OnIdiom.Tablet>
</OnIdiom>

The attachable property Phone was not found in type OnIdiom.

And I also get another warning here:

<Thickness x:Key="pageContentPadding">10,0,10,0</Thickness>

The type 'Thickness' does not support direct content.

I've used these styles since the beginning of the app with no warning, until now.
How should I change them now?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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