Click here to Skip to main content
15,356,720 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: display same result in different units: U.S. v.s. Metric Pin
Member 97807175-Mar-14 13:05
MemberMember 97807175-Mar-14 13:05 
GeneralRe: display same result in different units: U.S. v.s. Metric Pin
SledgeHammer015-Mar-14 13:47
MemberSledgeHammer015-Mar-14 13:47 
QuestionWPF Detect Property Change In Entity In VM Pin
Kevin Marois4-Mar-14 7:46
professionalKevin Marois4-Mar-14 7:46 
AnswerRe: WPF Detect Property Change In Entity In VM Pin
Pete O'Hanlon4-Mar-14 8:16
mvaPete O'Hanlon4-Mar-14 8:16 
GeneralRe: WPF Detect Property Change In Entity In VM Pin
Kevin Marois11-Mar-14 6:15
professionalKevin Marois11-Mar-14 6:15 
GeneralRe: WPF Detect Property Change In Entity In VM Pin
Pete O'Hanlon11-Mar-14 6:20
mvaPete O'Hanlon11-Mar-14 6:20 
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
Memberpradeep 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
mvaPete 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
mvaPete 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
mvaPete 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
mvaPete 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
mvaPete 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 

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.