I have a view with a listbox, and a button. The view is simply to allow a user to select a value from a list, then proceed to the next view.
The list is bound to an Enumerable in the view-model, and has an attached action.
cal:Message.Attach="[MouseDoubleClick] = [MoveNext]" // this allows the user to simply doubleclick an item in the list to proceed
I want the button disabled when nothing in the list is selected - forcing the user to select something.
So, I added this to the view-model
public bool CanMoveNext()
The problem is the 'CanMoveNext' is being applied to both the button, AND the listbox, resulting in both the listbox and button being disabled, the user cannot select an item to proceed.
I have gotten around this by not using the 'CanMoveNext' convention, but I would prefer to use it if I could...
Is there something Im missing?