Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IPopupService.cs
1using System;
2using System.Threading.Tasks;
3using Microsoft.Maui.Controls;
6
8{
12 [DefaultImplementation(typeof(PopupService))]
13 public interface IPopupService
14 {
20 Task PushAsync<TPopup>(PopupOptions? Options = null) where TPopup : ContentView;
21
28 Task PushAsync<TPopup, TViewModel>(PopupOptions? Options = null)
29 where TPopup : ContentView
30 where TViewModel : class;
31
40 Task PushAsync<TPopup, TViewModel>(TViewModel ViewModel, PopupOptions? Options = null)
41 where TPopup : ContentView
42 where TViewModel : class;
43
52 Task<TReturn?> PushAsync<TPopup, TViewModel, TReturn>(PopupOptions? Options = null)
53 where TPopup : ContentView
54 where TViewModel : ReturningPopupViewModel<TReturn>;
55
65 Task<TReturn?> PushAsync<TPopup, TViewModel, TReturn>(TViewModel ViewModel, PopupOptions? Options = null)
66 where TPopup : ContentView
67 where TViewModel : ReturningPopupViewModel<TReturn>;
68
74 Task PushAsync(ContentView Popup, PopupOptions? Options = null);
75
79 Task PopAsync();
80
84 bool HasOpenPopups { get; }
85
89 event EventHandler? PopupStackChanged;
90 }
91}
Options controlling popup presentation and behavior.
Definition: PopupOptions.cs:11
Service responsible for presenting and dismissing application popups.
Task PushAsync< TPopup >(PopupOptions? Options=null)
Pushes a popup view resolved from dependency injection.
bool HasOpenPopups
Returns true if at least one popup is currently presented.
Task PopAsync()
Dismisses the top-most popup if present.
Task PushAsync(ContentView Popup, PopupOptions? Options=null)
Pushes an already created popup instance.
EventHandler? PopupStackChanged
Event raised whenever the popup stack changes.