Showing posts with label MVVM. Show all posts
Showing posts with label MVVM. Show all posts

Sunday, March 30, 2014

Wednesday, October 17, 2012

Mouse Event Command for MVVM - CodeProject

English: Compaq keyboard and mouse Français : ...
English: Compaq keyboard and mouse Français : clavier et souris d'ordinateur Compaq (Photo credit: Wikipedia)
Matthew Searies' Introduction to Article

If you've ever want to pass MouseEventArgs to a ViewModel, here's a neat way to do it :) 

Mouse Event Command for MVVM - CodeProject
Enhanced by Zemanta

Saturday, April 16, 2011

NetworkView: A WPF custom control for visualizing and editing networks, graphs and flow-charts - CodeProject

Introduction to the article

I am going to assume that you already know C# and have at least a basic knowledge of using WPF and XAML. An understanding of MVVM, WPF styles, control templates and data-templates will also help, although I'll do my best to fill in some of the details along the way and provide links to learning resources.
Josh Smith's Guided Tour of WPF and Sacha Barber's WPF: A Beginner's Guide are a good place to start if you want a WPF primer. Christian Mosers WPF Tutorial.net is full of interesting snippets of WPF information and has some great diagrams that can help explain WPF concepts.
Josh Smith also has an article on MVVM and if you already know a bit of WPF and MVVM I can recommend reading Gary Hall's book, I just read it and found that it has helped progress my MVVM knowledge and experience.



NetworkView: A WPF custom control for visualizing and editing networks, graphs and flow-charts - CodeProject
Enhanced by Zemanta

Sunday, March 6, 2011

WPF/MVVM Quick Start Tutorial - CodeProject

Introduction to Article

Assuming that you have a decent understanding of C++ and a modest understanding of C#, getting started in WPF shouldn't be too difficult. I started looking at WPF 6 months ago, and after probably causing a spike in Google's searches, I finally started to understand and become productive with WPF (whether I've missed the boat on this one, is another story for another day).
As with learning any new technology, you get the benefit of hindsight. From my perspective, almost every tutorial on WPF I've come across is inadequate for one of several reasons:
  • the example is all in WPF
  • the example glosses over the key facts that would actually make your life easier.
  • the example tries to show off WPF's capabilities with lots of pointless effects that aren't helping you.
  • the example uses classes that have properties that appear far too similar to framework keywords and classes, and are therefore difficult to idenfity in the (XAML) code as being user defined (ListBox GroupStyle's Name is a complete headache for novices).
So to address this, I've written this based on what I would have liked to have found as the #1 hit on Google after typing 'WPF Tutorial'. This article may not be 100% correct, or even do things 'the one true way', but it will illustrate the main points that I wish I had found in one place 6 months ago.
I will quickly introduce some topics, then show an example that explains or demonstrates each point. Accordingly, I haven't really attempted to make the GUIs pretty, that's not the point of this article (see the bullet points above).
As this tutorial is quite long, I've elided quite a lot of code for brevity, so please download the attached zip file, and look at the examples (.Net 4.0/VS2010). Each example builds on the previous one.


WPF/MVVM Quick Start Tutorial - CodeProject
Enhanced by Zemanta

Wednesday, November 24, 2010

WPFDialogs - CodeProject

 How to Inherit From Custom Window and Create a dialog that returns a value using WPF and MVVM

WPFDialogs - CodeProject