Could anyone give me a WPF example of using the RadWizardCommands? I have defined the wizard in XAML and would like to receive the commands (MoveCurrentToNext, Finish, etc.) in the view model.
Thank you.
Adrian
1 Answer, 1 is accepted
0
Stefan
Telerik team
answered on 28 Mar 2016, 09:28 AM
Hi Adrian,
Generally, the commands of the control can be accessed through the RadWizardCommands class. You can check out the Commands topic for more information on the matter.
Please take a look at the snippet below, demonstrating how the MoveCurrentToNext command can be defined.
private ICommand currentToNextCommand;
public MyViewModel()
{
this.currentToNextCommand =
RadWizardCommands.MoveCurrentToNext;
}
public ICommand CurrentToNextCommand
{
get
{
return this.currentToNextCommand;
}
}
Then you should be able to bind the Command property of a Button to CurrentToNextCommand one.
I hope this helps.
Regards,
Stefan X1
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.