RadWizardCommands

2 posts, 0 answers
  1. Adrian
    Adrian avatar
    1 posts
    Member since:
    Jan 2016

    Posted 23 Mar Link to this post

    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

  2. Stefan X1
    Admin
    Stefan X1 avatar
    521 posts

    Posted 28 Mar Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top