Posts Tagged ‘MVVM’

XAML: blend behavious and markup extensions

November 18, 2012

A book, an article, a blog post … but a good lesson is something you cannot miss!

Here is Miguel Castro sessions, last NDC 2012: Extending XAML To Overcome Pretty Much Any Limitation.

2nd part is about Blend behavious and Markup extensions,
to me the most interesting 😉

Just a helpfull example: ContentMargin attached property (thanks to Steven Hollidge). 😉

source: Extending XAML To Overcome Pretty Much Any Limitation

Technorati tags: XAML, Blend

Advanced MVVM

October 21, 2012

Advanced MVVM by Josh Smith

Amazon:

This e-book is for WPF and Silverlight developers looking to take their Model-View-ViewModel skills to the next level. It reviews how the MVVM design pattern was used to create a fun and addictive game that provides an elegant user experience. Read this e-book to gain insights from Josh Smith, an industry recognized expert in WPF, Silverlight, and MVVM, on how to properly design complex View and ViewModel architectures. Learn how to support unlimited undo, coordinate animated transitions, control modal dialog boxes from a ViewModel, and much more.

Me: I read this book a long ago, when I started writing WPF+MVVM apps. It was helpfull that time, and for WPF/SL+MVVM beginners it’s still husefull.
In your early steps in MVVM, better read it.
It’s less da 60 pages and it’s a very good example about developing a MVVM application.
😉

source: Advanced MVVM

Technorati tags: WPF,Silverlight,MVVM

WPF: first application video tutorial

March 23, 2012

While I was showing some hints on WPF to a friend of mine,
I also found a video tutorial that includes most of them.
Author is Pete Brown, and it made a great job to me: a 32 minutes video showing simple concepts about binding, mvvm, xaml, etc.

If you are approaching WPF, and wonder which side start from,
than this video will help you a lot understanding what WPF offers to you.

It worth have a look. 🙂

source: How Do I: Build My First WPF Application

Install Silverlight

Technorati tags: WPF, MVVM, XAML

WPF, MVVM, INotifyPropertyChanged: Lambda – DependencyObject performance

March 18, 2012

INotifyPropertyChanged give a helpfull “feature” to WPF+MVVM, but using all those variable names via string is painfull (ie refactoring ?!?!) .
Well, Lambda expression are an easy solution, cute and let writes fluent reading code.
All that glitters ain’t gold!

Lamdba facilitations come with a heavy resource usage: time, cpu, memory.

Here is a blog post, MVVM – Lambda vs INotifyPropertyChanged vs DependencyObject, with some tests and comparison.

Better have a look. 😉
source: MVVM – Lambda vs INotifyPropertyChanged vs DependencyObject

Technorati tags: WPF, MVVM, INotifyPropertyChanged, Lambda

CSLA & WPF MVVM: ValidationRules in ViewModel

October 9, 2011

CSLA framework provide validation rules mechanism via Business Rules.

How we can bring csla validation rules in MVVM viewmodel ?
Just implement IDataErrorInfo in viewmodel, and link to broken rule collection. 🙂

Thanks to EnricoG for his wonderfull solution.

here is a sample: Using a ViewModel to Provide Meaningful Validation Error Messages

Technorati tags: WPF, MVVM, CSLA, Validation, IDataErrorInfo