WPF: Cancel a user selection in a databound ListBox?
For future stumblers on this question, this page is what ultimately worked for me: http://blog.alner.net/archive/2010/04/25/cancelling-selection-change-in-a-bound-wpf-combo-box.aspx It’s for a combobox, but works for a listbox just fine, since in MVVM you don’t really care what type of control is calling the setter. The glorious secret, as the author mentions, is to actually change the underlying value … Read more