Hi,
I have a problem with a ComboBox in a Ribbon. Its ItemsSource is bound to a collection and I believe a Command is supposed to be triggered on each selection change. I have looked at the samples and I have basically implemented everything in a similar fashion. Still I am observing a problem with Commands not being fired when expected.
When the application is initially started the first selection change fires a Command as expected. All subsequent selection changes never fire additional Commands unless Return is pressed immediately after a selection change. This is Actipro ComboBox, not WPF one and it is not editable. Why does this happen? Am I missing something obvious?
One other thing I have observed. I have added a button that allows me to clear ComboBox selection (set SelectedItem to null). Setting SelectedItem to null too does not fire a Command but the very next attempt to change ComboBox selection results in a Command being fired.
So to wrap up my experience, a Command is only fired upon the first selection change as well as on any other selection change that follows programmatic clearing of SelectedItem. In all other cases, a Command can be provoked solely by hitting Return after a selection change.
Please advise. Thanks!
I have a problem with a ComboBox in a Ribbon. Its ItemsSource is bound to a collection and I believe a Command is supposed to be triggered on each selection change. I have looked at the samples and I have basically implemented everything in a similar fashion. Still I am observing a problem with Commands not being fired when expected.
When the application is initially started the first selection change fires a Command as expected. All subsequent selection changes never fire additional Commands unless Return is pressed immediately after a selection change. This is Actipro ComboBox, not WPF one and it is not editable. Why does this happen? Am I missing something obvious?
One other thing I have observed. I have added a button that allows me to clear ComboBox selection (set SelectedItem to null). Setting SelectedItem to null too does not fire a Command but the very next attempt to change ComboBox selection results in a Command being fired.
So to wrap up my experience, a Command is only fired upon the first selection change as well as on any other selection change that follows programmatic clearing of SelectedItem. In all other cases, a Command can be provoked solely by hitting Return after a selection change.
Please advise. Thanks!