Click here to Skip to main content
15,909,205 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: MVVM question: hierarchical model representation Pin
SledgeHammer0114-Oct-11 5:01
SledgeHammer0114-Oct-11 5:01 
GeneralRe: MVVM question: hierarchical model representation Pin
SledgeHammer0114-Oct-11 5:47
SledgeHammer0114-Oct-11 5:47 
GeneralRe: MVVM question: hierarchical model representation Pin
SledgeHammer0114-Oct-11 6:30
SledgeHammer0114-Oct-11 6:30 
GeneralRe: MVVM question: hierarchical model representation Pin
SledgeHammer0114-Oct-11 8:07
SledgeHammer0114-Oct-11 8:07 
GeneralRe: MVVM question: hierarchical model representation Pin
SledgeHammer0114-Oct-11 8:22
SledgeHammer0114-Oct-11 8:22 
GeneralRe: MVVM question: hierarchical model representation Pin
Member 103390714-Oct-11 8:00
Member 103390714-Oct-11 8:00 
GeneralRe: MVVM question: hierarchical model representation Pin
SledgeHammer0114-Oct-11 8:19
SledgeHammer0114-Oct-11 8:19 
GeneralRe: MVVM question: hierarchical model representation Pin
Member 103390714-Oct-11 9:13
Member 103390714-Oct-11 9:13 
I am starting to get it now. As I explained, I lived under the impression that model classes should only store data and not contain any means to manipulate them (this belongs to viewmodel). I learned this in some MVVM article, possibly not very good one because you say the direct opposite.

Still it is good to know there are ways to deal with data sources I do not have under my control, so I appreciate Colin's input.

But suppose the UI allows for direct manipulation with the individual Day objects (which are low in the whatever-Week-Day hierarchy). I could implement this by exposing a Manipulate (or something) command in the Day class, but rather in the DayViewModel class, since command handling is the viewmodel's job, right? If so, I am back to square one since I need the Day model class which manipulates the data and the DayViewModel which exposes the manipulation commands. If this is correct that the question still stands, how can the Week model class contain a collection of Day objects if it actually needs DayViewModel objects and thus would have to be tied with one particular viewmodel? If you say to expose the commands directly in the Day class, then I really see no point of VM layer since it would do nothing of any value.
QuestionSetting combobox width by binding Pin
Preston Phillips13-Oct-11 10:30
Preston Phillips13-Oct-11 10:30 
GeneralRe: Setting combobox width by binding Pin
Preston Phillips13-Oct-11 10:51
Preston Phillips13-Oct-11 10:51 
GeneralRe: Setting combobox width by binding Pin
Preston Phillips14-Oct-11 8:37
Preston Phillips14-Oct-11 8:37 
QuestionSet DisplayMemberPath For Dynamic Combobox Pin
Matt Tapia11-Oct-11 8:20
Matt Tapia11-Oct-11 8:20 
AnswerRe: Set DisplayMemberPath For Dynamic Combobox Pin
Wayne Gaylard12-Oct-11 1:09
professionalWayne Gaylard12-Oct-11 1:09 
GeneralRe: Set DisplayMemberPath For Dynamic Combobox Pin
Matt Tapia12-Oct-11 4:19
Matt Tapia12-Oct-11 4:19 
GeneralRe: Set DisplayMemberPath For Dynamic Combobox Pin
Alisaunder13-Oct-11 2:46
Alisaunder13-Oct-11 2:46 
GeneralRe: Set DisplayMemberPath For Dynamic Combobox Pin
Wayne Gaylard13-Oct-11 2:59
professionalWayne Gaylard13-Oct-11 2:59 
QuestionWPF Datagrid checkbox property not updated Pin
Preston Phillips11-Oct-11 8:17
Preston Phillips11-Oct-11 8:17 
AnswerRe: WPF Datagrid checkbox property not updated Pin
Wayne Gaylard12-Oct-11 1:11
professionalWayne Gaylard12-Oct-11 1:11 
GeneralRe: WPF Datagrid checkbox property not updated Pin
Preston Phillips12-Oct-11 3:52
Preston Phillips12-Oct-11 3:52 
GeneralRe: WPF Datagrid checkbox property not updated Pin
Preston Phillips12-Oct-11 4:38
Preston Phillips12-Oct-11 4:38 
GeneralRe: WPF Datagrid checkbox property not updated Pin
Preston Phillips12-Oct-11 5:15
Preston Phillips12-Oct-11 5:15 
QuestionValue Conversions Pin
Geysser8-Oct-11 9:04
Geysser8-Oct-11 9:04 
AnswerRe: Value Conversions Pin
Abhinav S9-Oct-11 0:45
Abhinav S9-Oct-11 0:45 
AnswerRe: Value Conversions Pin
SledgeHammer019-Oct-11 8:05
SledgeHammer019-Oct-11 8:05 
GeneralRe: Value Conversions Pin
Geysser9-Oct-11 8:18
Geysser9-Oct-11 8:18 

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.