Class PermissionPopup
Permission popup.
Inheritance
Implements
Inherited Members
Namespace: Forms9Patch
Assembly: Forms9Patch.dll
Syntax
public class PermissionPopup : Alert, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, INavigationProxy, IStyleSelectable, IAnimatable, IResourcesProvider, IStyleElement, IFlowDirectionController, IPropertyPropagationController, IVisualController, ITabStopElement, IStylable, ILayout, IPageController, IVisualElementController, IElementController, IElementConfiguration<Page>, IPaddingElement, IControlTemplated, IPopup, IBackground, IShape, IElement, IDisposable
Constructors
PermissionPopup(VisualElement)
Initializes a new instance of the PermissionPopup class.
Declaration
public PermissionPopup(VisualElement target = null)
Parameters
Type | Name | Description |
---|---|---|
VisualElement | target |
Fields
CancelButtonColorProperty
The cancel button color property.
Declaration
public static readonly BindableProperty CancelButtonColorProperty
Field Value
Type | Description |
---|---|
BindableProperty |
CancelTextColorProperty
The cancel text color property.
Declaration
public static readonly BindableProperty CancelTextColorProperty
Field Value
Type | Description |
---|---|
BindableProperty |
CancelTextProperty
The cancel text property.
Declaration
public static readonly BindableProperty CancelTextProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
CancelButtonColor
Gets or sets the color of the cancel button.
Declaration
public Color CancelButtonColor { get; set; }
Property Value
Type | Description |
---|---|
Color | The color of the cancel button. |
CancelText
Gets or sets the cancel text.
Declaration
public string CancelText { get; set; }
Property Value
Type | Description |
---|---|
String | The cancel text. |
CancelTextColor
Gets or sets the color of the cancel text.
Declaration
public Color CancelTextColor { get; set; }
Property Value
Type | Description |
---|---|
Color | The color of the cancel text. |
Methods
CancelAsync(Object)
Cancel the PermissionPopup
Declaration
public override Task CancelAsync(object trigger = null)
Parameters
Type | Name | Description |
---|---|---|
Object | trigger |
Returns
Type | Description |
---|---|
Task |
Overrides
Create(String, String, String, String, Color, Color, Color, Color)
Create the specified title, text, okText, cancelText, okButtonColor, cancelButtonColor, okTextColor and cancelTextColor.
Declaration
public static PermissionPopup Create(string title, string text, string okText = "OK", string cancelText = "Cancel", Color okButtonColor = default(Color), Color cancelButtonColor = default(Color), Color okTextColor = default(Color), Color cancelTextColor = default(Color))
Parameters
Type | Name | Description |
---|---|---|
String | title | Title. |
String | text | Text. |
String | okText | Ok text. |
String | cancelText | Cancel text. |
Color | okButtonColor | Ok button color. |
Color | cancelButtonColor | Cancel button color. |
Color | okTextColor | Ok text color. |
Color | cancelTextColor | Cancel text color. |
Returns
Type | Description |
---|---|
PermissionPopup |
Create(VisualElement, String, String, String, String, Color, Color, Color, Color)
Create the specified target, title, text, okText, cancelText, okButtonColor, cancelButtonColor, okTextColor and cancelTextColor.
Declaration
public static PermissionPopup Create(VisualElement target, string title, string text, string okText = "OK", string cancelText = "Cancel", Color okButtonColor = default(Color), Color cancelButtonColor = default(Color), Color okTextColor = default(Color), Color cancelTextColor = default(Color))
Parameters
Type | Name | Description |
---|---|---|
VisualElement | target | Target. |
String | title | Title. |
String | text | Text. |
String | okText | Ok text. |
String | cancelText | Cancel text. |
Color | okButtonColor | Ok button color. |
Color | cancelButtonColor | Cancel button color. |
Color | okTextColor | Ok text color. |
Color | cancelTextColor | Cancel text color. |
Returns
Type | Description |
---|---|
PermissionPopup | The create. |
Dispose(Boolean)
Dispose instance
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing |
Overrides
OnPropertyChanged(String)
Ons the property changed.
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
Type | Name | Description |
---|---|---|
String | propertyName | Property name. |