xaml - 为什么 Xamarin ListView 缓存策略显示 "Ambiguous Reference"?

标签 xaml xamarin xamarin.forms

下面是“核心”项目中一个页面的截图。添加时CachingStrategy="RecycleElement" , 我收到

"Ambiguous Reference" error.



将鼠标悬停在它上面不会提供有关如何修复它的任何其他信息,ReSharper 也不会。

/image/KSEt5.png

最佳答案

您可以在 ListView 构造函数中指定 RecycleElement 而不是使用 x:Arguments

<ListView ...>
  <x:Arguments>
    <ListViewCachingStrategy>RecycleElement</ListViewCachingStrategy>
  </x:Arguments>
</ListView>

关于xaml - 为什么 Xamarin ListView 缓存策略显示 "Ambiguous Reference"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40416042/

相关文章:

c# - PixelSense Surface 2.0 - 将 UserControl 拖放到 ScatterView 上,反之亦然

c# - 如何在 WPF 中正确绑定(bind)我的模型?

xaml - 如何在 (Uno 2.4) 中使用 Microsoft.UI.Xaml.Controls 资源

ios - 如何在 Xamarin.iOS 中保护 cache.db 文件

xamarin.forms - 如何在xamarin iOS项目 Storyboard文件中将LaunchScreen图像宽度约束设置为superview?

c# - 如何在 wpf 中更改数据网格的单个单元格颜色?

c# - 在跨平台 xamarin 项目(ios 和 android)中使用 c# 从查询列表中检索数据时遇到参数异常错误

xamarin - 如何将参数传递给命令

ios - 两个根演示文稿之间的 MvvmCross v5 动画

xamarin - 'Microsoft.EntityFrameworkCore.Query.ResultOperators.Internal.TrackingExpressionNode' 的类型初始值设定项引发异常