Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IShellPresenter.cs
1using System;
2using System.Threading.Tasks;
3using Microsoft.Maui;
4using Microsoft.Maui.Controls;
5using Microsoft.Maui.Graphics;
7
9{
13 public interface IShellPresenter
14 {
15 Task ShowScreen(ContentView screen, TransitionType transition = TransitionType.None);
16 Task ShowPopup(ContentView popup, PopupTransition transition, PopupVisualState visualState);
17 Task HidePopup(ContentView popup, PopupTransition transition, PopupVisualState? nextVisualState);
18 Task ShowToast(View toast, ToastTransition transition = ToastTransition.SlideFromTop, ToastPlacement placement = ToastPlacement.Top);
19 Task HideToast(ToastTransition transition = ToastTransition.SlideFromTop);
20 void UpdateBars(BindableObject screen);
21 event EventHandler? PopupBackgroundTapped;
22 event EventHandler? PopupBackRequested;
23 }
24
28 public sealed class PopupVisualState
29 {
30 public PopupVisualState(double overlayOpacity, bool isBlocking, bool allowBackgroundTap, PopupPlacement placement, Point? anchorPoint, Thickness margin, Thickness padding)
31 {
32 this.OverlayOpacity = overlayOpacity;
33 this.IsBlocking = isBlocking;
34 this.AllowBackgroundTap = allowBackgroundTap;
35 this.Placement = placement;
36 this.AnchorPoint = anchorPoint;
37 this.Margin = margin;
38 this.Padding = padding;
39 }
40
41 public double OverlayOpacity { get; }
42
43 public bool IsBlocking { get; }
44
45 public bool AllowBackgroundTap { get; }
46
47 public PopupPlacement Placement { get; }
48
49 public Point? AnchorPoint { get; }
50
51 public Thickness Margin { get; }
52
53 public Thickness Padding { get; }
54 }
55}
Visual directives supplied by the popup service for presenter rendering.
Presenter abstraction host for page, popup and toast transitions.
TransitionType
Transition types for page navigation in CustomShell.
Definition: CustomShell.cs:662