Class ModalPopup
Forms9Patch Modal popup.
Inheritance
Implements
Inherited Members
Namespace: Forms9Patch
Assembly: Forms9Patch.dll
Syntax
public class ModalPopup : PopupBase, 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
ModalPopup(TimeSpan)
Initializes a new instance of the ModalPopup class.
Declaration
public ModalPopup(TimeSpan popAfter = default(TimeSpan))
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | popAfter | Pop after TimeSpan. |
Fields
LocationProperty
The location property backing store.
Declaration
public static readonly BindableProperty LocationProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ScaleProperty
BindableProperty for Scale property
Declaration
public static readonly BindableProperty ScaleProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
Content
Gets or sets the content of the FormsPopup.Modal.
Declaration
public View Content { get; set; }
Property Value
Type | Description |
---|---|
View | The content. |
Location
Gets or sets the Modal Popup's location.
Declaration
public Point Location { get; set; }
Property Value
Type | Description |
---|---|
Point | The location (default centers it in Host Page). |
Scale
the scale of the content of the popup
Declaration
public double Scale { get; set; }
Property Value
Type | Description |
---|---|
Double |
Methods
LayoutChildren(Double, Double, Double, Double)
Positions and sizes the children of a Layout.
Declaration
protected override void LayoutChildren(double x, double y, double width, double height)
Parameters
Type | Name | Description |
---|---|---|
Double | x | A value representing the x coordinate of the child region bounding box. |
Double | y | A value representing the y coordinate of the child region bounding box. |
Double | width | A value representing the width of the child region bounding box. |
Double | height | A value representing the height of the child region bounding box. |
Overrides
Remarks
Implementors wishing to change the default behavior of a Layout should override this method. It is suggested to still call the base method and modify its calculated results.
OnPropertyChanged(String)
Responds to a change in a PopupBase property.
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
Type | Name | Description |
---|---|---|
String | propertyName | The name of the property that changed. |