Click here to Skip to main content
15,881,803 members
Articles / Desktop Programming / WPF

MVVM Pattern Made Simple

Rate me:
Please Sign up or sign in to vote.
4.87/5 (183 votes)
24 Sep 2014CPOL18 min read 698.4K   23.8K   480  
This article gives an overview of MVVM pattern, its usage and advantages
<Window x:Class="CommandSample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="250" Width="325">
    <Grid>
        <Button Content="Call Command"
                Width="100"
                Height="25"
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
                Command="{Binding TheCommand}"/>
    </Grid>
</Window>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect AWebPros
United States United States
I am a software architect and a developer with great passion for new engineering solutions and finding and applying design patterns.

I am passionate about learning new ways of building software and sharing my knowledge with others.

I worked with many various languages including C#, Java and C++.

I fell in love with WPF (and later Silverlight) at first sight. After Microsoft killed Silverlight, I was distraught until I found Avalonia - a great multiplatform package for building UI on Windows, Linux, Mac as well as within browsers (using WASM) and for mobile platforms.

I have my Ph.D. from RPI.

here is my linkedin profile

Comments and Discussions