Xamarin XAML 与 children 的绑定路径

Xamarin XAML Binding Path with children

我有一个 ViewCell 和一个 PickerListView:

(简体)

    <ViewCell.View>
        <Label Text="{Binding CompanyName}"/>
        <Picker ItemsSource="{Binding ??this??.Employees}"> 

ViewCell 绑定到 Company,其中包含 Employees 的集合(Employee.Name 是要显示的字段值)

如何将选择器设置为员工。基本上我需要一个 this.Employeess ??

由于员工列表是被绑定公司的一部分,您只需将 ItemsSource 绑定到员工

  <ViewCell.View>
        <Label Text="{Binding CompanyName}"/>
        <Picker ItemsSource="{Binding Employees}">