Navigation in MVVM

27 בNovember 2010

Navigation in MVVM One of the main issues regarding Silverlight was the navigation issue, what commonly refers as “How can we support browser’s back button”. Although Microsoft has standard solution for that is somewhat limited. It’s limitation concerns two main issues: 1. Navigation requires as to use Page Navigation and not user controls 2. It won’t support scenario when pressing a link changes the internal state     but will replace the entire page instead. ...
no comments

MVVM – Using commands

6 בNovember 2010

MVVM – Using commands On my previous post I’ve talked about MVVM in general. I’ve also demonstrated how data binding with ViewModel works. There is, however, issue with buttons: Buttons won’t cause property changes (like TextBox, ComboBox etc. where you can have TwoWay binding mode) and therefor we cannot cause the ViewModel to run code through property setters. So, what do we do?  ...

MVVM for Silverlight – what is it about?

4 בNovember 2010

MVVM for Silverlight – what is it about? I recently had the pleasure of having Elad Katz as a consultant for the customer I work for on Sela’s behalf. Elad’s job was to lead us migrating a “regular” Silverlight project to MVVM . This post is the first in a series discussing MVVM and it’s application in Silverlight. In here I’ll discuss about what MVVM is all about and what are it’s advantages. What is MVVM ? MVVM is a design pattern aimed mainly to separate (and decouple) the graphic design  from it’s data and behavior (It is based on MVC and MVP...
no comments