maryam
maryam

Reputation: 53

Xamarin Forms 4.11.0 error: No property, bindable property or event found for UWP

I met strange error for UWP from following xaml:`

<sfPager:SfDataPager.HeightRequest>
                <OnPlatform x:TypeArguments="x:Double"  
                  UWP="40"
                  Android="50"
                  iOS="50"/>                 
 </sfPager:SfDataPager.HeightRequest>

When compiling, I got the following error:

No property, bindable property, or event found for 'UWP', or mismatching type between value and property.

what am I doing wrong here?!

Upvotes: 2

Views: 498

Answers (2)

maryam
maryam

Reputation: 53

<sfPager.SfDataPager HeightRequest="{OnPlatform UWP=40, iOS=50, Android=50}"

Upvotes: 1

SushiHangover
SushiHangover

Reputation: 74094

Platform Differences with OnPlatform:

<OnPlatform x:TypeArguments="x:Double">
    <On Platform="UWP" Value="40"></On>
    <On Platform="Android" Value="50"></On>
    <On Platform="iOS" Value="50"></On>
</OnPlatform>

re: Platform Differences with OnPlatform

Upvotes: 2

Related Questions