Click here to Skip to main content
15,919,245 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: WPF Detect Property Change In Entity In VM Pin
Matt T Heffron4-Mar-14 8:37
professionalMatt T Heffron4-Mar-14 8:37 
GeneralRe: WPF Detect Property Change In Entity In VM Pin
Kevin Marois11-Mar-14 5:50
professionalKevin Marois11-Mar-14 5:50 
Well I implemented this and it doesn't work. I registered the property, compiled, and ran it. Nothing happens. The method I registered doesn't get called. The property IS changed, but the callback doesn't get called.

Too bad, it looked promising.

[UPDATE]

So here's what I just found....

I have a GridView bound to a list of JobAssignmentEntities and who's SelectedItem is bound to a property in my VM called SelectedJobAssignment.

In the CTOR of the VM I did

propertyObserver = new PropertyObserver<JobAssignmentHeaderEntity>(this.SelectedJobAssignment)
                        .RegisterHandler(n => n.PhaseStart, n => this.phaseStartChanged(n));


In order to register it the property must not be null, because of a null ref check in the register method.

So I moved the block above inside the SelectedJobAssignment's Getter and it works.

sooo, I will need to find a way to register EACH time the SelectedJobAssignment is set.
If it's not broken, fix it until it is


modified 11-Mar-14 11:59am.

GeneralRe: WPF Detect Property Change In Entity In VM Pin
Matt T Heffron11-Mar-14 7:51
professionalMatt T Heffron11-Mar-14 7:51 
GeneralRe: WPF Detect Property Change In Entity In VM Pin
Matt T Heffron11-Mar-14 7:53
professionalMatt T Heffron11-Mar-14 7:53 
GeneralRe: WPF Detect Property Change In Entity In VM Pin
Kevin Marois11-Mar-14 8:00
professionalKevin Marois11-Mar-14 8:00 
SuggestionRe: WPF Detect Property Change In Entity In VM Pin
Matt T Heffron11-Mar-14 8:13
professionalMatt T Heffron11-Mar-14 8:13 
GeneralRe: WPF Detect Property Change In Entity In VM Pin
Kevin Marois11-Mar-14 8:18
professionalKevin Marois11-Mar-14 8:18 
AnswerRe: WPF Detect Property Change In Entity In VM Pin
pradeep surya5-Mar-14 7:31
pradeep surya5-Mar-14 7:31 
QuestionWPF Bind Window Activated Event To Command Pin
Kevin Marois3-Mar-14 10:40
professionalKevin Marois3-Mar-14 10:40 
AnswerRe: WPF Bind Window Activated Event To Command Pin
Pete O'Hanlon3-Mar-14 10:53
mvePete O'Hanlon3-Mar-14 10:53 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Kevin Marois3-Mar-14 11:11
professionalKevin Marois3-Mar-14 11:11 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Pete O'Hanlon3-Mar-14 11:16
mvePete O'Hanlon3-Mar-14 11:16 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Kevin Marois3-Mar-14 11:17
professionalKevin Marois3-Mar-14 11:17 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Pete O'Hanlon3-Mar-14 11:18
mvePete O'Hanlon3-Mar-14 11:18 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Kevin Marois3-Mar-14 11:19
professionalKevin Marois3-Mar-14 11:19 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Pete O'Hanlon3-Mar-14 11:37
mvePete O'Hanlon3-Mar-14 11:37 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Kevin Marois3-Mar-14 11:39
professionalKevin Marois3-Mar-14 11:39 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Pete O'Hanlon3-Mar-14 12:33
mvePete O'Hanlon3-Mar-14 12:33 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Kevin Marois3-Mar-14 12:48
professionalKevin Marois3-Mar-14 12:48 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Kevin Marois4-Mar-14 7:44
professionalKevin Marois4-Mar-14 7:44 
GeneralRe: WPF Bind Window Activated Event To Command Pin
Pete O'Hanlon5-Mar-14 12:13
mvePete O'Hanlon5-Mar-14 12:13 
QuestionProblem in wpf prism Pin
Arun kumar Gautam25-Feb-14 20:51
Arun kumar Gautam25-Feb-14 20:51 
AnswerRe: Problem in wpf prism Pin
Pete O'Hanlon27-Feb-14 11:41
mvePete O'Hanlon27-Feb-14 11:41 
QuestionWPF DatagridComboBoxColumn - puzzler Pin
Duke Carey25-Feb-14 4:14
professionalDuke Carey25-Feb-14 4:14 
AnswerRe: WPF DatagridComboBoxColumn - puzzler Pin
Duke Carey25-Feb-14 7:07
professionalDuke Carey25-Feb-14 7:07 

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.