private void OnBindingContextChanged(object sender, EventArgs e) { _viewModel = (sender as Picker)?.BindingContext as ParameterComboViewModel; }
private void OnDataContextChanged(object sender, DependencyPropertyChangedEventArgs e) { _viewModel = (sender as ComboBox)?.DataContext as ParameterComboViewModel; }