My Team requires interfaces for our ViewModels. I love the MVVM Community Toolkit but I want to use both interfaces and [RelayCommand]
Attributed class methods.
- To be clear how do I define an interface for
DownloadConfigurationCommand
in the following scenario using myObservableObject
descendant class?
the following generates a ‘Command’ that is public called:
DownloadConfigurationCommand
The code is defined as:
[RelayCommand]
private async Task DownloadConfiguration(AppConfiguration appConfiguration)
{
// TODO: Call DownloadConfiguration Configuration
await Task.Delay(10);
}
Thanks in advance