Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
BasePopupViewModel.cs
1using System.Threading.Tasks;
3
5{
10 {
11 private readonly TaskCompletionSource<bool> popped = new(TaskCreationOptions.RunContinuationsAsynchronously);
12
16 public Task Popped => this.popped.Task;
17
18 internal async Task NotifyPoppedAsync()
19 {
20 await this.OnPopAsync();
21 this.popped.TrySetResult(true);
22 }
23
24 protected virtual Task OnPopAsync()
25 {
26 return Task.CompletedTask;
27 }
28 }
29}
A base class for all view models, inheriting from the BindableObject. NOTE: using this class requir...
Base class for popup view models/>.
Task Popped
Task completed when the popup has been dismissed.