Giter Club home page Giter Club logo

worlds-simplest-csharp-wpf-mvvm-example's Introduction

The World's Simplest C# WPF MVVM Example

The World's Simplest C# WPF MVVM Example as described here.

A C# 9 (.NET 5.0) version of the code can be found in the C#9.0 branch. Build

Older Versions

A C# 8 (.NET Core 3.0) version of the code can be found in the c#8.0 branch. Build

A C# 6 version of the code can be found in the C#6.0 branch. Build

A C# 4 version of the code can be found in the C#4.0 branch. Build

A C# 4 version of the code (with detailed comments by Hampton) can be found in the C#4.0 branch (with detailed comments). Build

worlds-simplest-csharp-wpf-mvvm-example's People

Contributors

k4kfh avatar markwithall avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

worlds-simplest-csharp-wpf-mvvm-example's Issues

Link Problems

Hi Mark,

first of all thanks for the examples.

I landed here following your blog https://www.markwithall.com/programming/2013/03/01/worlds-simplest-csharp-wpf-mvvm-example.html

I have notized a couple of problems with links in your blog and here. They not a big deal, but I wanted to let you know, just in case you want to correct them.

  1. The microsoft link posted in your blog when you talk about the possible memory leaks of theViewModel is not valid (MS has changed a lot of things and broken a big amount of links out there in the net)
  2. The link to the c# 4.0 here in the readme.md is actually pointing the c# 6.0 branch (one can eassily change the url in the navigation bar to get there though)
  3. The section "me on the web" of your blog could be reduced a bit since some of those links / services (specially Google's) don't exit anymore

P.S.
Sorry that I posted it here as an issue, it's is the easiest way I found to contact you.
If you want I can delete it later, because it actually has nothing to do with your code.

Setting Window.DataContext Problem

When mindlessly following your MVVM tutorial an error occurs when trying to add the Window.DataContext

Even though the window has a reference to the right namespace and the filenames are spelled correctly, VS shows an error that :"The name Presenter does not exist in the namespace {insert namespace name}"

The solution was compiling the project first without the DataContext tags. (Found in SO comment Afterwards the Presenter class could be found and set as DataContext.

Business logic in ViewModel

In the blog post it says:

Model: This can be really simple, the goal here is for the ViewModel not to have to do any of the business logic.

However, the Presenter class - the ViewModel - seems to contain the business logic to convert text to upper case when creating a TextConverter. Shouldn't this be in the Model already?

Please note that I'm fairly new to MVVM so I could easily be wrong here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.