Generate view model commands with [RelayCommand] #182
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ethan-hann/SavePoint#182
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
.agents/coding-standards/app-mvvm-view-models.mdsays a command a view model owns is a[RelayCommand]method, with a namedCanExecuteproperty for its gate.new RelayCommand(...)is only for a command one object builds and hands to another, such as the remove command on each chip.These view models build their own commands by hand, in constructors or
field ??= new RelayCommand(...)properties, many with the gate in a lambda:GamesScreenViewModel,NewProfileWizardViewModel,ProfileRowViewModel,StorageSectionViewModel,TourViewModel,StartupViewModel,ShellViewModel,HelpSectionViewModel,HistoryScreenViewModel,HowItWorksViewModel,JobDetailsViewModel,JobStatusViewModel,SettingsScreenViewModel,ClearAllDataSectionViewModel,ContextualHelpViewModel,FreeUpSpaceViewModel,ActivityScreenViewModel.Keep the hand-written ones that are handed off (for example the commands
ShellViewModelpasses intoFirstRunViewModel). Find them with:Shipped in 0.9.17 (PR 227).