Data binding inotifypropertychanged. To solve this, set the DataContext to the window itself:.