You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A window's DataContext doesn't have its CanExecute method called when there is a RelayCommand with a DataGrid's SelectedItems property as a command parameter. Using MVVMLight, the method is called.
I've attached two versions of the same program, one using CommunityToolkit.MVVM and one using MVVMLight. The CanExecute method for the ProcessMultipleSelectedCommand RelayCommand is called correctly in the MVVMLight version but not the CommunityToolkit.MVVM version. Am I doing something wrong, is this a limitation in CommunityToolkit.MVVM, or is this a bug in CommunityToolkit.MVVM?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
A window's DataContext doesn't have its CanExecute method called when there is a RelayCommand with a DataGrid's SelectedItems property as a command parameter. Using MVVMLight, the method is called.
I've attached two versions of the same program, one using CommunityToolkit.MVVM and one using MVVMLight. The CanExecute method for the ProcessMultipleSelectedCommand RelayCommand is called correctly in the MVVMLight version but not the CommunityToolkit.MVVM version. Am I doing something wrong, is this a limitation in CommunityToolkit.MVVM, or is this a bug in CommunityToolkit.MVVM?
SelectedItemsTest.zip
SelectedItemsTestMVVMLight.zip
Beta Was this translation helpful? Give feedback.
All reactions