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

OnPlatform error Xamarin Forms Xaml

$
0
0

Hello,

I have this code

<StackLayout x:Name="TabsArea" HorizontalOptions="FillAndExpand" BackgroundColor="#A26FED" Padding="7,0,15,0">
    <StackLayout.HeightRequest>
        <OnPlatform x:TypeArguments="x:Double">
        <On Platform="Android" Value="30" />
        <On Platform="iOS" Value="27" />
        </OnPlatform>
    </StackLayout.HeightRequest>
    <StackLayout Orientation="Horizontal" x:Name="DayTabs" />
</StackLayout>

When i try to run the app i get this error

Error: Position 29:18. Type OnPlatform not found in xmlns http://xamarin.com/schemas/2014/forms

I am using Xamarin Forms 2.X

Any ideas?

Thx.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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