Archive for the ‘MVVM’ Category

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


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, 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

Xedotnet meeting: Test Driving a MVVM Application + .Net Micro FW sessions

June 11, 2011

Yesterday was last Xedotnet meeting of 2011 season-part 1.

Test Driving a MVVM Application
Speaker: Emanuele DelBono

A short, brief and complete intro on TDD & WPF.
A sort of step-by-step guide, hands on code, with pomodoro too! 😉

very very happy not missed it 🙂

#Session 2
Introduzione a .NET Micro Framework
Speaker: Mirco Vanini – Senior Consultant

We needed it!
Since 2009, a lot of changes have happened.
The project’s team moved to Visual Studio, micro framework’s code is on codeplex, porting kit is free … a lots of others.

Mirco reported every one of them, and helped us to figure out the current situation.

Both session, involving and very professional speakers.

Xedotnet: +2, once more 😉

Technorati tags: Xedotnet, WPF, MVVM, TDD, .NET Micro FW