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
Iuga Alexandru edited this page May 16, 2023
·
2 revisions
A Command class is the equivalent of:
a Page class from ASP.NET Razor Pages;
a View Model class from the MVVM pattern used in WPF.
The Command
Here it is an example of a Command:
[Command("dummy",ShortDescription="A dummy command that shows how to use Commando.")]publicclassDummyCommand:ICommand{[CommandParameter(Name="text",ShortName='t',IsOptional=true)]publicstringDummyText{get;set;}publicTaskExecute(){DummyText+=" - additional text";returnTask.CompletedTask;}}