【发布时间】:2019-11-06 04:41:58
【问题描述】:
我创建了一个带有图像和标签的自定义 ContentView。
我还创建了 ImageUrl 和 LabelText 的属性。
我希望这个 ContentView 在列表视图中接收一个绑定值
<MyCustomContentView ImageUrl="{Binding Image}" LabelText="{Binding Text}" />
但它说没有可绑定的属性。如何创建它?
【问题讨论】:
-
在您的 MyCustomContentView 中使用 bindable-properties。
标签: xamarin.forms