Click here to Skip to main content
16,008,490 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF MVVM Nested Views Pin
SledgeHammer0121-Oct-11 12:41
SledgeHammer0121-Oct-11 12:41 
AnswerRe: WPF MVVM Nested Views Pin
Abhinav S21-Oct-11 18:15
Abhinav S21-Oct-11 18:15 
GeneralRe: WPF MVVM Nested Views Pin
SledgeHammer0122-Oct-11 7:24
SledgeHammer0122-Oct-11 7:24 
AnswerRe: WPF MVVM Nested Views Pin
Pete O'Hanlon24-Oct-11 5:36
mvePete O'Hanlon24-Oct-11 5:36 
GeneralRe: WPF MVVM Nested Views Pin
Pete O'Hanlon24-Oct-11 6:02
mvePete O'Hanlon24-Oct-11 6:02 
GeneralRe: WPF MVVM Nested Views Pin
Kevin Marois24-Oct-11 8:07
professionalKevin Marois24-Oct-11 8:07 
AnswerWPF MVVM Nested Views - Clarification Pin
Kevin Marois24-Oct-11 8:06
professionalKevin Marois24-Oct-11 8:06 
GeneralRe: WPF MVVM Nested Views - Clarification Pin
SledgeHammer0124-Oct-11 8:23
SledgeHammer0124-Oct-11 8:23 
Oh, OK... I wasn't exactly sure why you wanted to know if a child view property has changed in my original response... was just giving you what you wanted Smile | :) . Now that you have posted more information, I retract my original response and provide you with a new one.

1) normally, views should not know about each other
2) normally toolbar buttons are routed to the ACTIVE view... in your case, what would happen is that the save button would only be enabled if the child view was active. Probably not what you want? Or maybe it is? I.e. if the tree has focus, should the button still be enabled if the view is dirty?

I'd probably have the IsDirty bool flag in the main window class and have the child view send a message through messenger and have the main window class subscribe to the "some property has changed" message.

You do have a messenger service, right? Smile | :) ... thats a key part of MVVM.
GeneralRe: WPF MVVM Nested Views - Clarification Pin
Kevin Marois24-Oct-11 8:48
professionalKevin Marois24-Oct-11 8:48 
GeneralRe: WPF MVVM Nested Views - Clarification Pin
SledgeHammer0124-Oct-11 8:55
SledgeHammer0124-Oct-11 8:55 
GeneralRe: WPF MVVM Nested Views - Clarification Pin
Kevin Marois24-Oct-11 8:58
professionalKevin Marois24-Oct-11 8:58 
GeneralRe: WPF MVVM Nested Views - Clarification Pin
SledgeHammer0124-Oct-11 9:10
SledgeHammer0124-Oct-11 9:10 
GeneralRe: WPF MVVM Nested Views - Clarification Pin
Kevin Marois25-Oct-11 6:30
professionalKevin Marois25-Oct-11 6:30 
GeneralRe: WPF MVVM Nested Views - Clarification Pin
SledgeHammer0125-Oct-11 6:37
SledgeHammer0125-Oct-11 6:37 
QuestionWPF Dynamic Content Pin
Kevin Marois20-Oct-11 11:56
professionalKevin Marois20-Oct-11 11:56 
AnswerRe: WPF Dynamic Content Pin
SledgeHammer0120-Oct-11 13:27
SledgeHammer0120-Oct-11 13:27 
GeneralRe: WPF Dynamic Content Pin
Kevin Marois20-Oct-11 14:00
professionalKevin Marois20-Oct-11 14:00 
QuestionRe-validating DataGrid after programmaticallychanging row source Pin
jchalfant18-Oct-11 7:50
jchalfant18-Oct-11 7:50 
QuestionRe: Re-validating DataGrid after programmaticallychanging row source Pin
Mark Salsbery19-Oct-11 6:54
Mark Salsbery19-Oct-11 6:54 
AnswerRe: Re-validating DataGrid after programmaticallychanging row source Pin
jchalfant20-Oct-11 5:02
jchalfant20-Oct-11 5:02 
GeneralRe: Re-validating DataGrid after programmaticallychanging row source Pin
Mark Salsbery20-Oct-11 5:55
Mark Salsbery20-Oct-11 5:55 
GeneralRe: Re-validating DataGrid after programmaticallychanging row source Pin
jchalfant20-Oct-11 8:45
jchalfant20-Oct-11 8:45 
Questionribbon tool bar Pin
transoft18-Oct-11 5:13
transoft18-Oct-11 5:13 
AnswerRe: ribbon tool bar Pin
SledgeHammer0118-Oct-11 5:18
SledgeHammer0118-Oct-11 5:18 
AnswerRe: ribbon tool bar Pin
Alisaunder18-Oct-11 5:38
Alisaunder18-Oct-11 5:38 

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.