Is there an object or interface I can use to make an auto-updating object, and have those updates filter through to the UI in WPF?
Basically I'm looking for something like this:
<TextBlock Text="{Binding Source={StaticResource myClass}, Path=DataObject}" />
public class MyClass
{
public AutoUpdatingObject DataObject { get; set; }
}
public class AutoUpdatingObject: ???
{
???
}
No I can't make MyClass implement INotifyPropertyChanged. I need the AutoUpdatingObject class to be able to notify WPF of changes.