Visual studio XAML ExtendedPicker-在ViewModel中调用代码
是否有方法更改此ExtendedPicker,以便在用户更改select数据时在ViewModel中调用MyCodeVisual studio XAML ExtendedPicker-在ViewModel中调用代码,visual-studio,xaml,xamarin,mvvm,xamarin.forms,Visual Studio,Xaml,Xamarin,Mvvm,Xamarin.forms,是否有方法更改此ExtendedPicker,以便在用户更改select数据时在ViewModel中调用MyCode <controls:ExtendedPicker Style="{StaticResource FormEntry}" x:Name="carTypePicker" Picker.Title="{i18n:Translate SelectCar}" ItemsSource="{Binding carTy
<controls:ExtendedPicker
Style="{StaticResource FormEntry}"
x:Name="carTypePicker"
Picker.Title="{i18n:Translate SelectCar}"
ItemsSource="{Binding carTypes}"
DisplayProperty="Name" SelectedItem="{Binding SelectedCarType, Mode=TwoWay}">
</controls:ExtendedPicker>
您不能从SelectedCarType属性的setter调用MyCode吗
private YourType _selectedCarType;
public YourType SelectedCarType
{
get { return _canFilterByOrderId; }
set { _selectedCarType = value; MyCode(); }
}