This project is read-only.
Project Description
Just another yet MVVM Toolkit to build WPF application.

Key reasons for using the Rubik's Cube MVVM Toolkit in your applications:

a. To get rid of the need to get/set Command properties in the view model

b. To simplify work with the configuration file. Common settings, such as Window State and Position of Window, are already implemented.

c. To simplify work with validation of objects and view models

d. To detect incorrect command names/settings/validators

You can see these and many other features in the demo application (included in the source code).

DemoAppCommands.png

Quick Start:

1. Create a new View Model with these commands:

using Sovacode.RubiksCube.Common.ViewModel;

public class MyViewModel : ViewModelTop
{

   private void SomeCommandToRun() { };

   protected override void RegisterCommands()
   {
       base.RegisterCommands();

       RegisterCommand("SomeCommand",
                            o => SomeCommandToRun());
   }
}

3. Set DataContext of your View:

/* Extension methods for Window class */
using Sovacode.RubiksCube.Common.View;

public partial class MainWindow : Window
{

    public MainWindow()
    {
 /* Setting up DataContext of main window */
            DataContext = new ViewModel.MyViewModel
                              {
                                  WindowService = this.MakeWindowService()
                              };

         InitializeComponent();
     }
}

3. Set up your XAML code:
<Button Command="{Binding [SomeCommand]}" Content="Say hello!" Height="23" Margin="5,0"/>

That's all. Now clicking the button will execute the command SomeCommand.

NuGet Catalog: Rubiks Cube MVVM Toolkit 1.1.3130.71

On-line API Documentation

Last edited Apr 8, 2013 at 8:05 PM by Daniil_Monin, version 16