Click here to Skip to main content
15,886,110 members
Home / Discussions / WPF
   

WPF

 
QuestionObject looses a Cookie Value in Silverlight Pin
Vimalsoft(Pty) Ltd14-May-11 5:12
professionalVimalsoft(Pty) Ltd14-May-11 5:12 
QuestionRe: Object looses a Cookie Value in Silverlight Pin
Mark Salsbery14-May-11 7:21
Mark Salsbery14-May-11 7:21 
AnswerRe: Object looses a Cookie Value in Silverlight Pin
Vimalsoft(Pty) Ltd14-May-11 7:31
professionalVimalsoft(Pty) Ltd14-May-11 7:31 
AnswerRe: Object looses a Cookie Value in Silverlight Pin
Abhinav S15-May-11 5:29
Abhinav S15-May-11 5:29 
GeneralRe: Object looses a Cookie Value in Silverlight Pin
Vimalsoft(Pty) Ltd15-May-11 5:35
professionalVimalsoft(Pty) Ltd15-May-11 5:35 
QuestionMVVM Model Pin
Member 455049313-May-11 1:34
Member 455049313-May-11 1:34 
AnswerRe: MVVM Model Pin
Nicolai Schrade13-May-11 4:04
Nicolai Schrade13-May-11 4:04 
AnswerRe: MVVM Model [modified] Pin
RobCroll14-May-11 0:52
RobCroll14-May-11 0:52 
The two main advantages I see in using the ViewModel is that it allows you to write unit tests and separates the various concerns making for a cleaner implementation.

You can't unit test the code behind your view but you can unit test the ViewModel code. So by seperating your presentation logic from the view itself, you create a more reliable solution. Not sure if you are actually reducing the amount of code. It's just moved to the ViewModel

You can bind directly to the model but writing presentation logic (adding properties, sort routines etc) in the model creates performance issues and confuses other developers about the purpose of the model. So by using the ViewModel class to implement this logic, you can avoid these problems.

The idea behind MVVM is simple, finding good articles which step you through implementing MVVM can be hard to hard to find but MVVM fits nicely with the WPF/Silverlight data binding model.
"You get that on the big jobs."
modified on Saturday, May 14, 2011 7:34 PM

AnswerRe: MVVM Model Pin
Abhinav S15-May-11 5:27
Abhinav S15-May-11 5:27 
AnswerRe: MVVM Model Pin
_Maxxx_16-May-11 2:45
professional_Maxxx_16-May-11 2:45 
QuestionAbout Apllication More Memory usage Pin
Member 455049313-May-11 1:29
Member 455049313-May-11 1:29 
QuestionRe: About Apllication More Memory usage Pin
Mark Salsbery13-May-11 6:15
Mark Salsbery13-May-11 6:15 
AnswerRe: About Apllication More Memory usage Pin
Member 455049315-May-11 5:18
Member 455049315-May-11 5:18 
AnswerRe: About Apllication More Memory usage Pin
Vimalsoft(Pty) Ltd15-May-11 5:39
professionalVimalsoft(Pty) Ltd15-May-11 5:39 
QuestionShow task bar after maximise the window in wpf Pin
Naufalkk13-May-11 0:08
Naufalkk13-May-11 0:08 
QuestionWPF DataGrid - automatically insert new line on tab in last visible column Pin
Nicolai Schrade12-May-11 4:05
Nicolai Schrade12-May-11 4:05 
AnswerRe: WPF DataGrid - automatically insert new line on tab in last visible column Pin
dasblinkenlight12-May-11 4:38
dasblinkenlight12-May-11 4:38 
GeneralRe: WPF DataGrid - automatically insert new line on tab in last visible column Pin
Nicolai Schrade13-May-11 4:00
Nicolai Schrade13-May-11 4:00 
GeneralRe: WPF DataGrid - automatically insert new line on tab in last visible column Pin
dasblinkenlight13-May-11 4:10
dasblinkenlight13-May-11 4:10 
GeneralRe: WPF DataGrid - automatically insert new line on tab in last visible column Pin
Nicolai Schrade13-May-11 4:44
Nicolai Schrade13-May-11 4:44 
Questionincorrect value retrieved. Pin
arkiboys11-May-11 3:35
arkiboys11-May-11 3:35 
AnswerRe: incorrect value retrieved. Pin
Ian Shlasko11-May-11 3:40
Ian Shlasko11-May-11 3:40 
GeneralRe: incorrect value retrieved. Pin
arkiboys11-May-11 3:41
arkiboys11-May-11 3:41 
GeneralRe: incorrect value retrieved. Pin
Ian Shlasko11-May-11 3:48
Ian Shlasko11-May-11 3:48 
GeneralRe: incorrect value retrieved. Pin
arkiboys12-May-11 1:59
arkiboys12-May-11 1:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.