Click here to Skip to main content
15,512,747 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: UserControl Template Pin
Abhinav S10-Mar-12 20:18
Abhinav S10-Mar-12 20:18 
QuestionNext MVVM Discussion Pin
Kevin Marois9-Mar-12 7:39
professionalKevin Marois9-Mar-12 7:39 
AnswerRe: Next MVVM Discussion Pin
Mycroft Holmes9-Mar-12 13:37
professionalMycroft Holmes9-Mar-12 13:37 
GeneralRe: Next MVVM Discussion Pin
Abhinav S10-Mar-12 20:16
Abhinav S10-Mar-12 20:16 
GeneralRe: Next MVVM Discussion Pin
Mycroft Holmes10-Mar-12 22:36
professionalMycroft Holmes10-Mar-12 22:36 
GeneralRe: Next MVVM Discussion Pin
Kevin Marois11-Mar-12 14:54
professionalKevin Marois11-Mar-12 14:54 
GeneralRe: Next MVVM Discussion Pin
Mycroft Holmes11-Mar-12 15:20
professionalMycroft Holmes11-Mar-12 15:20 
AnswerRe: Next MVVM Discussion Pin
Abhinav S10-Mar-12 20:12
Abhinav S10-Mar-12 20:12 
From a purist's perspective, yes, a view model should not know absolutely anything about the view.
Think of this from a unit testing perspective - if you are going to write some tests for your view model and you have reference to the 'view' in that, its going to be that much harder to get around the view and write a test case.

However, I've noticed that while implementing run-time animations etc, I have sometimes failed to have view 'independent' view models.
Very often, I just use the Tree Helper and parse through view controls from within my view model - not the best implementation from the purist perspective. But with animation and 'hey whatever works' in mind, sometimes a deviation from the pattern works better.
QuestionHistory of MVVM Pin
Kevin Marois8-Mar-12 11:19
professionalKevin Marois8-Mar-12 11:19 
AnswerRe: History of MVVM Pin
Pete O'Hanlon8-Mar-12 12:17
mvaPete O'Hanlon8-Mar-12 12:17 
GeneralRe: History of MVVM Pin
Colin Eberhardt9-Mar-12 0:04
Colin Eberhardt9-Mar-12 0:04 
GeneralRe: History of MVVM Pin
Pete O'Hanlon9-Mar-12 0:30
mvaPete O'Hanlon9-Mar-12 0:30 
GeneralRe: History of MVVM Pin
Colin Eberhardt9-Mar-12 0:38
Colin Eberhardt9-Mar-12 0:38 
GeneralRe: History of MVVM Pin
Pete O'Hanlon9-Mar-12 0:44
mvaPete O'Hanlon9-Mar-12 0:44 
GeneralRe: History of MVVM Pin
Colin Eberhardt9-Mar-12 0:50
Colin Eberhardt9-Mar-12 0:50 
GeneralRe: History of MVVM Pin
Pete O'Hanlon9-Mar-12 1:04
mvaPete O'Hanlon9-Mar-12 1:04 
GeneralRe: History of MVVM Pin
SledgeHammer019-Mar-12 5:40
SledgeHammer019-Mar-12 5:40 
GeneralRe: History of MVVM Pin
Pete O'Hanlon9-Mar-12 10:23
mvaPete O'Hanlon9-Mar-12 10:23 
AnswerRe: History of MVVM Pin
Abhinav S8-Mar-12 20:52
Abhinav S8-Mar-12 20:52 
QuestionAny ideas on MVVM'ing this? Pin
SledgeHammer018-Mar-12 8:25
SledgeHammer018-Mar-12 8:25 
Questioncreating a popup DataGrid inside the ComboBox Pin
Giorgi Nistor6-Mar-12 23:04
Giorgi Nistor6-Mar-12 23:04 
AnswerRe: creating a History listbox control Pin
Abhinav S7-Mar-12 0:01
Abhinav S7-Mar-12 0:01 
GeneralRe: creating a History listbox control Pin
Giorgi Nistor7-Mar-12 0:27
Giorgi Nistor7-Mar-12 0:27 
AnswerRe: creating a History listbox control Pin
Abhinav S7-Mar-12 0:31
Abhinav S7-Mar-12 0:31 
AnswerRe: creating a History listbox control Pin
SledgeHammer017-Mar-12 7:39
SledgeHammer017-Mar-12 7:39 

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.