作者:sunshinechenxm | 来源:互联网 | 2023-05-19 05:31
IsthereanobjectorinterfaceIcanusetomakeanauto-updatingobject,andhavethoseupdatesfi
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?
是否有可用于制作自动更新对象的对象或接口,并将这些更新过滤到WPF中的UI?
Basically I'm looking for something like this:
基本上我正在寻找这样的东西:
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.
不,我不能让MyClass实现INotifyPropertyChanged。我需要AutoUpdatingObject类能够通知WPF更改。
1 个解决方案