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

WPF

 
AnswerRe: ribbon tool bar Pin
Alisaunder18-Oct-11 5:38
Alisaunder18-Oct-11 5:38 
QuestionIdentify WPF list conrol Items' Automation ID in QTP Pin
pal2ashish18-Oct-11 2:28
pal2ashish18-Oct-11 2:28 
QuestionAutomationID to WPF controls Pin
pal2ashish14-Oct-11 21:36
pal2ashish14-Oct-11 21:36 
AnswerRe: AutomationID to WPF controls Pin
Abhinav S18-Oct-11 3:32
Abhinav S18-Oct-11 3:32 
GeneralRe: AutomationID to WPF controls Pin
pal2ashish18-Oct-11 19:21
pal2ashish18-Oct-11 19:21 
QuestionMVVM question: hierarchical model representation Pin
Member 103390713-Oct-11 11:06
Member 103390713-Oct-11 11:06 
AnswerRe: MVVM question: hierarchical model representation Pin
Alisaunder14-Oct-11 1:13
Alisaunder14-Oct-11 1:13 
QuestionRe: MVVM question: hierarchical model representation Pin
Member 103390714-Oct-11 3:53
Member 103390714-Oct-11 3:53 
I see I didn't express myself clearly. It is not really a functionality I am looking for, more like advice on how to deal with the given scenario using MVVM. If I ditch MVVM, I am ok.

Another approach to explaining the question: how to work with two-layer model data in MVVM framework.
As an abstract example - consider a SubItem class (model) and associated SubItemViewModel, then I have Item class (model; containing a collection of SubItems) and associated ItemViewModel. The application works with a collection of Items (we may call this application-level class SuperItemViewModel).
Like I explained in the original post, the model classes consist of ordinary collections of another model classes while the view-model classes contain observable collections of associated view-model classes (this is how I understand MVVM, which may be wrong).
My question is, how to best plug these M and VM classes together while maintaining sufficient separability. That is, in the imaginary Item model class I could directly use ObservableCollection of SubItemViewModels but this, in my understanding, has no place in model classes, which are supposed to be unaware of view-models.

To say it most generally, I think I understand the V-VM part but I don't really get the M-VM part.

Hope I made myself clearer. If not, I may give up this thread and MVVM altogetherSmile | :)
Thanks for any suggestions.
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 
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 

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.