Skip to content

Boiler Plate Code to get a WPF MVVM project up and going

Notifications You must be signed in to change notification settings

babinc/Crank.MVVM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Crank MVVM ##Install Using: PM> Install-Package Crank.MVVM ##NuGet Page: Crank.MVVM ##Features: ####No Magic Strings When Binding Properties

    private string _title;
    public string Title
    {
    	get { return _title; }
        set
        {
         	_title = value;
            base.RaisePropertyChanged(() => Title);
        }
    }

####View Model Locator

    var example = VMLocator.OtherVM.MyProperty;

####Simple Commands

    private RelayCommand _testCommand;
    public ICommand TestCommand
    {
        get
        {
            if (_testCommand == null)
            {
                _testCommand = new RelayCommand(TestExecute, CanTest);
            }
            return _testCommand;
        }
    }

    private bool CanTest(object obj)
    {
        return true;
    }

    private void TestExecute(object obj)
    {
         
    }

About

Boiler Plate Code to get a WPF MVVM project up and going

Resources

Stars

Watchers

Forks

Packages

No packages published