gpt4 book ai didi

c# - Xamarin Forms 4.11.0 错误 : No property, 为 UWP 找到可绑定(bind)属性或事件

转载 作者:行者123 更新时间:2023-11-30 21:30:04 25 4
gpt4 key购买 nike

我遇到了来自以下 xaml 的 UWP 奇怪错误:`

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

编译时出现如下错误:

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

我在这里做错了什么?!

最佳答案

与 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>

回复:Platform Differences with OnPlatform

关于c# - Xamarin Forms 4.11.0 错误 : No property, 为 UWP 找到可绑定(bind)属性或事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54814045/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com