-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Combo Box [EVENTBINDING] Warning!!! #219
Comments
It's warning you because your class VendorSearchViewModel ... {
...
OnPropertyChanged(propertyName: string) {
super.OnPropertyChanged(propertyName);
if (propertyName === "SelectedValue") {
//changed code
}
}
} |
If you are still sold on using (Remove the RelayCommand) OnSelectedValueChanged(e: Fayde.IEventBindingArgs<Fayde.Controls.Primitives.SelectionChangedEventArgs >) {
var value = e.args.NewValues[0];
if (!value)
return;
var ParentObject = this.Criteria.GetValueAt(0);
ParentObject.SelectedValue = value;
if (value.Description == "Section" || value.Description == "AnswerStatus")
ParentObject.Criteria = value.Key;
else
ParentObject.Criteria = value.Description;
} SelectionChanged="{EventBinding Command={Binding DataContext.OnSelectedValueChanged, RelativeSource={RelativeSource ItemsControlParent}}, CommandParameter="{Binding}}" |
We have used EventBinding so many places for many controls. This issue occurs only when we create new MVVM class object and assign to ContentControl for Page Navigation purpose. On page initialization stage it shows warning message in console. |
It is possible that your DataContext may be swapping and causing the This is why I recommend against using |
while using combo box selection change event its working fine but showing warning in console
[EVENTBINDING]: Could not find command target for event 'SelectionChanged'
below code is for reference
The text was updated successfully, but these errors were encountered: