We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Derive your view model from AsyncBindableBase:
AsyncBindableBase
using Ditto.AsyncMvvm; class UniversalAnswerViewModel : AsyncBindableBase { }
Implement the asynchronous method for calculating the value of the property:
private async Task<int?> GetAnswerAsync() { await Task.Delay(TimeSpan.FromDays(7500000 * 365.25)); return 42; }
Define the property:
public int? Answer { get { return Property.Get(GetAnswerAsync); } }
Done!