<cv:BindableComboBox ItemsSource="{Binding Themes}" SelectedValue="{Binding SelectedTheme}">
<cv:BindableComboBox.Title>
<OnPlatform x:TypeArguments="x:String"
iOS="{Binding ThemePickerTitle}"
Android="{Binding ThemePickerTitle}"/>
</cv:BindableComboBox.Title>
</cv:BindableComboBox>
我有一个选择器,想将其标题绑定到ThemePickerTitle属性上。 如果我将其写成内联属性,它可以正常工作。但是我不想在Windows上显示标题。因此,我使用OnPlatform为其在iOS和Droid上设置标题,但现在编译失败了。