Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
MVVM with python in the middle
Python
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
.gitignore
AUTHORS
LICENSE
README.md
mvvm.py
setup.py

README.md

IronPythonMVVM

Set of helper classes for easier using MVVM pattern with WPF and IronPython.

Inspired by http://www.galasoft.ch/mvvm/, but addapted to be more pythonic.

Example of creating ViewModel:

from mvvm import ViewModelBase, Notifiable, command

class MyViewModel(ViewModelBase):
    TextField = Notifiable()

    @command
    def MyCommand(self):
        # do something
        # maybe update `TestField`, event will be raise automatically
        TextField = 'some value'

This view model can be used in XAML just as if INotifyPropertyChanged and ICommand are implemented directly.

Something went wrong with that request. Please try again.