Class Popup<T>
弹出对话框基础类
Inheritance
Popup
Popup<T>
Popup<T>
Derived
Implements
Extension Methods
Namespace: Fleet.Mobile.Containers.Popup
Assembly: FleetMobile.dll
Syntax
public class Popup<T> : Popup<T>, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ILayout, ILayoutController, IVisualTreeElement, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Type Parameters
|
T
对话框返回结果类型 |
Constructors
Popup()
Declaration
public Popup()
Fields
ContentMarginProperty
Declaration
public static readonly BindableProperty ContentMarginProperty
Field Value
| BindableProperty |
TitleProperty
closeObject
Properties
ActionCommand
CanBeDismissedByTappingOutsideOfPopup
获取或设置对话框是否可以通过点击遮罩层关闭
Declaration
public bool CanBeDismissedByTappingOutsideOfPopup { get; set; }
Property Value
| bool |
ContentMargin
获取或设置对话框间距,默认为 (14, 20)
Declaration
public Thickness ContentMargin { get; set; }
Property Value
| Thickness |
ContentMinimumWidthRequest
获取对话框最小宽度,默认为 300
Declaration
protected virtual double ContentMinimumWidthRequest { get; }
Property Value
| double |
ContentVerticalOptions
获取对话框垂直对齐方式,默认为居中对齐
Declaration
protected virtual LayoutOptions ContentVerticalOptions { get; }
Property Value
| LayoutOptions |
CornerRadius
获取圆角弧度,默认为 32
Declaration
protected virtual CornerRadius CornerRadius { get; }
Property Value
| CornerRadius |
Title
Methods
ClosingAsync(object)
根据指令参数对象获取对话框返回对象。
Declaration
protected virtual Task<T> ClosingAsync(object o)
Parameters
|
object
o
指令参数对象 |
Returns
|
Task<T>
返回已转换的返回对象,无法转换则返回类型的默认值 |
OnOpened()
对话框打开时触发的方法。
Declaration
protected virtual void OnOpened()