Class MBSnackbarServiceConfiguration
Configuration for IMBSnackbarService.
public class MBSnackbarServiceConfiguration
- Inheritance
-
MBSnackbarServiceConfiguration
- Inherited Members
Constructors
MBSnackbarServiceConfiguration()
public MBSnackbarServiceConfiguration()
Fields
DefaultCloseMethod
public const MBNotifierCloseMethod DefaultCloseMethod = TimeoutAndDismissButton
Field Value
DefaultDismissIcon
public const bool DefaultDismissIcon = true
Field Value
DefaultLeading
public const bool DefaultLeading = false
Field Value
DefaultStacked
public const bool DefaultStacked = false
Field Value
DefaultTimeout
public const int DefaultTimeout = 5000
Field Value
Properties
CloseMethod
Determines how the snackbar closes. Defaults to TimeoutAndDismissButton.
public MBNotifierCloseMethod CloseMethod { get; set; }
Property Value
Leading
By default, snackbars are centered horizontally within the viewport. On larger screens, they can optionally be displayed on the leading edge of the screen (the left side in LTR, or the right side in RTL) by setting this property to true. Default: false.
public bool? Leading { get; set; }
Property Value
- bool?
Stacked
Action buttons with long text should be positioned below the label instead of alongside it. This can be accomplished by setting this property to true. Default: false.
public bool? Stacked { get; set; }
Property Value
- bool?
Timeout
The snackbar's timeout in milliseconds. Minimum value is 4000 (4 seconds), maximum value is 10000 (10s). Defaults to 5000.
public int? Timeout { get; set; }
Property Value
- int?