あなたのバインディングコンテキストでブール値を作成することができ、次のいずれか
public bool PickerShouldBeEnabled
{
get { return WoSpesaDett.DsTecnico.Count > 0; } //returns true if there are more than 0 elements
}
以上の性能の使用LINQのために「どれを()」、リスト内どの要素がある場合uはちょうどたい、それを有効にした場合
public bool PickerShouldBeEnabled
{
get { return WoSpesaDett.DsTecnico.Any(); } //returns true if there are any elements
}
それとも、値としてリストを取り、真のリスト要素の数に基づいて返しIValueConverterを作成することができます。 私はあなたにこのような状況のための基本的なコンバータを与えることができます。
public class IntToBooleanConverter : IValueConverter
{
public object Convert (object value, Type targetType, object parameter, CultureInfo culture)
{
int minimumLength = System.Convert.ToInt32 (parameter);
return (int)value >= minimumLength;
}
public object ConvertBack (object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
[コンバーター](https://blog.xamarin.com/advanced-data-binding-for-ios-android-and-windows/)を試すことができます。 – testing