我在 Xamarin Forms 中绑定时遇到问题。我想设置IsVisible的属性Label,以true/false根据计数的项目Listview。如果Listview有任何项目,Label IsVisible将是false,否则将是true。是否可以在 Xamarin Forms 中进行绑定?我尝试这样做,但我不知道如何将数字转换0为boolean falseXAML。
IsVisible
Label
true/false
Listview
Label IsVisible
false
true
0
boolean false
c# xamarin xamarin.forms
c# ×1
xamarin ×1
xamarin.forms ×1