I have a bound property like this:
public string MyPath
{
get { return _mypath; }
set
{
_mypath = value;
NotifyPropertyChanged(() => MyPath);
LoadSomeStuffFromMyPath(mypath)
}
}
I'd like the make LoadSomeStuffFromMyPath async but I cannot await from a property. Is there a simple way to do this?
EDIT: More than one person has said not to use a property so I want to call this out. I am using WPF and this property is bound to the UI. I have to use a property.
See Question&Answers more detail:os