Reputation: 53
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
Reputation: 53
<sfPager.SfDataPager HeightRequest="{OnPlatform UWP=40, iOS=50, Android=50}"
Upvotes: 1
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