This is a migrated thread and some comments may be shown as answers.

RadWizardCommands

1 Answer 57 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
Adrian
Top achievements
Rank 1
Adrian asked on 23 Mar 2016, 04:35 PM

Hi

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

Sort by
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.
Tags
Wizard
Asked by
Adrian
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or