c# - PropertyChanged method assignment -
i've implemented inotifypropertychanged interface simple wpf view-viewmodel , when call my
protected void raisepropertychanged(string propertyname) { if (propertychanged != null) { propertychanged(this, new propertychangedeventargs(propertyname)); } } on goodtext's set like
this.raisepropertychanged("goodtext"); the propertychanged event has method never assigned it.
when has been assigned? did it?
edit:
thank you, great advices, think willem's answer searching for, mean: when say
<button content="button" command="{binding checkbuttoncommand}" /> it's (ugly pseudocode)
propertychanged += button.givemethepropertyvalue; ? binding added handler propertychanged event?
most likely, property (and class) data bound in xaml (or through code).
if bind class implementing inotifypropertychanged, uielement being bound source class hookup event handler able monitor property changes.
Comments
Post a Comment