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

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -