Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ToastOptions.cs
1using System;
2
4{
8 public class ToastOptions
9 {
13 public ToastTransition ShowTransition { get; set; } = ToastTransition.SlideFromTop;
14
18 public ToastTransition HideTransition { get; set; } = ToastTransition.SlideFromTop;
19
23 public bool AutoDismiss { get; set; } = true;
24
28 public TimeSpan Duration
29 {
30 get => this.duration;
31 set
32 {
33 if (value < TimeSpan.Zero)
34 this.duration = TimeSpan.Zero;
35 else
36 this.duration = value;
37 }
38 }
39
43 public ToastPlacement Placement { get; set; } = ToastPlacement.Top;
44
45 private TimeSpan duration = TimeSpan.FromSeconds(3);
46 }
47}
Options controlling toast presentation.
Definition: ToastOptions.cs:9
bool AutoDismiss
Gets or sets whether the toast is dismissed automatically after Duration.
Definition: ToastOptions.cs:23
ToastTransition ShowTransition
Gets or sets the transition used when the toast is shown.
Definition: ToastOptions.cs:13
ToastPlacement Placement
Gets or sets the preferred placement for the toast overlay.
Definition: ToastOptions.cs:43
ToastTransition HideTransition
Gets or sets the transition used when the toast is dismissed.
Definition: ToastOptions.cs:18