Fleet Mobile
Search Results for

    Show / Hide Table of Contents

    Class Popup<T>

    弹出对话框基础类

    Inheritance
    object
    BindableObject
    Element
    StyleableElement
    NavigableElement
    VisualElement
    View
    Layout
    TemplatedView
    ContentView
    Popup
    Popup<T>
    Popup<T>
    Derived
    DialogPopup<T>
    Implements
    INotifyPropertyChanged
    IEffectControlProvider
    IToolTipElement
    IContextFlyoutElement
    IAnimatable
    IViewController
    IVisualElementController
    IElementController
    IGestureController
    IGestureRecognizers
    IPropertyMapperView
    IHotReloadableView
    IReplaceableView
    ILayout
    ILayoutController
    IVisualTreeElement
    IContentView
    IView
    IElement
    ITransform
    IPadding
    ICrossPlatformLayout
    Inherited Members
    Popup<T>.CloseAsync(T, CancellationToken)
    Popup.MarginProperty
    Popup.PaddingProperty
    Popup.HorizontalOptionsProperty
    Popup.VerticalOptionsProperty
    Popup.CanBeDismissedByTappingOutsideOfPopupProperty
    Popup.CloseAsync(CancellationToken)
    Popup.Margin
    Popup.Padding
    Popup.HorizontalOptions
    Popup.VerticalOptions
    Popup.Opened
    Popup.Closed
    ContentView.ContentProperty
    ContentView.OnBindingContextChanged()
    ContentView.Content
    TemplatedView.ControlTemplateProperty
    TemplatedView.LayoutChildren(double, double, double, double)
    TemplatedView.OnMeasure(double, double)
    TemplatedView.OnApplyTemplate()
    TemplatedView.OnChildRemoved(Element, int)
    TemplatedView.GetTemplateChild(string)
    TemplatedView.ResolveControlTemplate()
    TemplatedView.MeasureOverride(double, double)
    TemplatedView.OnSizeAllocated(double, double)
    TemplatedView.ArrangeOverride(Rect)
    TemplatedView.ControlTemplate
    Layout.IsClippedToBoundsProperty
    Layout.CascadeInputTransparentProperty
    Layout.ForceLayout()
    Layout.Measure(double, double, MeasureFlags)
    Layout.LayoutChildIntoBoundingRegion(VisualElement, Rect)
    Layout.LowerChild(View)
    Layout.RaiseChild(View)
    Layout.InvalidateLayout()
    Layout.OnChildMeasureInvalidated(object, EventArgs)
    Layout.OnChildMeasureInvalidated()
    Layout.ShouldInvalidateOnChildAdded(View)
    Layout.ShouldInvalidateOnChildRemoved(View)
    Layout.UpdateChildrenLayout()
    Layout.CrossPlatformMeasure(double, double)
    Layout.CrossPlatformArrange(Rect)
    Layout.IsClippedToBounds
    Layout.CascadeInputTransparent
    Layout.LayoutChanged
    View.propertyMapper
    View.ChangeVisualState()
    View.GetChildElements(Point)
    View.GetRendererOverrides<T>()
    View.GestureController
    View.GestureRecognizers
    VisualElement.NavigationProperty
    VisualElement.StyleProperty
    VisualElement.InputTransparentProperty
    VisualElement.IsEnabledProperty
    VisualElement.XProperty
    VisualElement.YProperty
    VisualElement.AnchorXProperty
    VisualElement.AnchorYProperty
    VisualElement.TranslationXProperty
    VisualElement.TranslationYProperty
    VisualElement.WidthProperty
    VisualElement.HeightProperty
    VisualElement.RotationProperty
    VisualElement.RotationXProperty
    VisualElement.RotationYProperty
    VisualElement.ScaleProperty
    VisualElement.ScaleXProperty
    VisualElement.ScaleYProperty
    VisualElement.ClipProperty
    VisualElement.VisualProperty
    VisualElement.IsVisibleProperty
    VisualElement.OpacityProperty
    VisualElement.BackgroundColorProperty
    VisualElement.BackgroundProperty
    VisualElement.BehaviorsProperty
    VisualElement.TriggersProperty
    VisualElement.WidthRequestProperty
    VisualElement.HeightRequestProperty
    VisualElement.MinimumWidthRequestProperty
    VisualElement.MinimumHeightRequestProperty
    VisualElement.MaximumWidthRequestProperty
    VisualElement.MaximumHeightRequestProperty
    VisualElement.IsFocusedProperty
    VisualElement.FlowDirectionProperty
    VisualElement.WindowProperty
    VisualElement.ShadowProperty
    VisualElement.ZIndexProperty
    VisualElement.BatchBegin()
    VisualElement.BatchCommit()
    VisualElement.Focus()
    VisualElement.Measure(double, double)
    VisualElement.Unfocus()
    VisualElement.InvalidateMeasure()
    VisualElement.OnChildAdded(Element)
    VisualElement.OnChildrenReordered()
    VisualElement.SizeAllocated(double, double)
    VisualElement.RefreshIsEnabledProperty()
    VisualElement.Arrange(Rect)
    VisualElement.Layout(Rect)
    VisualElement.InvalidateMeasureOverride()
    VisualElement.MapBackgroundColor(IViewHandler, IView)
    VisualElement.MapBackgroundImageSource(IViewHandler, IView)
    VisualElement.Visual
    VisualElement.FlowDirection
    VisualElement.Window
    VisualElement.AnchorX
    VisualElement.AnchorY
    VisualElement.BackgroundColor
    VisualElement.Background
    VisualElement.Behaviors
    VisualElement.Bounds
    VisualElement.Height
    VisualElement.HeightRequest
    VisualElement.InputTransparent
    VisualElement.IsEnabled
    VisualElement.IsEnabledCore
    VisualElement.IsFocused
    VisualElement.IsVisible
    VisualElement.MinimumHeightRequest
    VisualElement.MinimumWidthRequest
    VisualElement.MaximumHeightRequest
    VisualElement.MaximumWidthRequest
    VisualElement.Opacity
    VisualElement.Rotation
    VisualElement.RotationX
    VisualElement.RotationY
    VisualElement.Scale
    VisualElement.ScaleX
    VisualElement.ScaleY
    VisualElement.TranslationX
    VisualElement.TranslationY
    VisualElement.Triggers
    VisualElement.Width
    VisualElement.WidthRequest
    VisualElement.X
    VisualElement.Y
    VisualElement.Clip
    VisualElement.Resources
    VisualElement.Frame
    VisualElement.Handler
    VisualElement.Shadow
    VisualElement.ZIndex
    VisualElement.DesiredSize
    VisualElement.IsLoaded
    VisualElement.ChildrenReordered
    VisualElement.Focused
    VisualElement.MeasureInvalidated
    VisualElement.SizeChanged
    VisualElement.Unfocused
    VisualElement.Loaded
    VisualElement.Unloaded
    NavigableElement.OnParentSet()
    NavigableElement.Navigation
    StyleableElement.Style
    StyleableElement.StyleClass
    StyleableElement.class
    Element.AutomationIdProperty
    Element.ClassIdProperty
    Element.InsertLogicalChild(int, Element)
    Element.AddLogicalChild(Element)
    Element.RemoveLogicalChild(Element)
    Element.ClearLogicalChildren()
    Element.FindByName(string)
    Element.RemoveDynamicResource(BindableProperty)
    Element.SetDynamicResource(BindableProperty, string)
    Element.OnPropertyChanged(string)
    Element.OnParentChanging(ParentChangingEventArgs)
    Element.OnParentChanged()
    Element.OnHandlerChanging(HandlerChangingEventArgs)
    Element.OnHandlerChanged()
    Element.MapAutomationPropertiesIsInAccessibleTree(IElementHandler, Element)
    Element.MapAutomationPropertiesExcludedWithChildren(IElementHandler, Element)
    Element.AutomationId
    Element.ClassId
    Element.Effects
    Element.Id
    Element.StyleId
    Element.Parent
    Element.ChildAdded
    Element.ChildRemoved
    Element.DescendantAdded
    Element.DescendantRemoved
    Element.ParentChanging
    Element.ParentChanged
    Element.HandlerChanging
    Element.HandlerChanged
    BindableObject.BindingContextProperty
    BindableObject.ClearValue(BindableProperty)
    BindableObject.ClearValue(BindablePropertyKey)
    BindableObject.GetValue(BindableProperty)
    BindableObject.IsSet(BindableProperty)
    BindableObject.RemoveBinding(BindableProperty)
    BindableObject.SetBinding(BindableProperty, BindingBase)
    BindableObject.ApplyBindings()
    BindableObject.OnPropertyChanging(string)
    BindableObject.UnapplyBindings()
    BindableObject.SetValue(BindableProperty, object)
    BindableObject.SetValue(BindablePropertyKey, object)
    BindableObject.CoerceValue(BindableProperty)
    BindableObject.CoerceValue(BindablePropertyKey)
    BindableObject.Dispatcher
    BindableObject.BindingContext
    BindableObject.PropertyChanged
    BindableObject.PropertyChanging
    BindableObject.BindingContextChanged
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Extension Methods
    UIExtensions.AppThemeBinding<T, K>(T, BindableProperty, K, K)
    UIExtensions.BackgroundColorBinding<T, TSource, TProperty>(T, Func<TSource, TProperty>, string, IValueConverter, object, string, TSource)
    UIExtensions.Binding<T>(T, BindableProperty, BindingBase)
    UIExtensions.Binding<T, TSource, TProperty>(T, BindableProperty, Func<TSource, TProperty>, string, Action<TSource, TProperty>, BindingMode?, IValueConverter, object, string, TSource)
    UIExtensions.EnabledBinding<T, TSource, TProperty>(T, Func<TSource, TProperty>, string, IValueConverter, object, string, TSource)
    UIExtensions.GridColumnSpan<T>(T, int)
    UIExtensions.GridColumn<T>(T, int)
    UIExtensions.GridRowSpan<T>(T, int)
    UIExtensions.GridRow<T>(T, int)
    UIExtensions.MarginBinding<T, TSource, TProperty>(T, Func<TSource, TProperty>, string, IValueConverter, object, string, TSource)
    UIExtensions.Tap<T>(T, EventHandler<TappedEventArgs>)
    UIExtensions.TranslationXBinding<T, TSource, TProperty>(T, Func<TSource, TProperty>, string, IValueConverter, object, string, TSource)
    UIExtensions.VisibleBinding<T, TSource, TProperty>(T, Func<TSource, TProperty>, string, IValueConverter, object, string, TSource)
    UIExtensions.WidthRequestBinding<T, TSource, TProperty>(T, Func<TSource, TProperty>, string, IValueConverter, object, string, TSource)
    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

    Declaration
    public static readonly BindableProperty TitleProperty
    Field Value
    BindableProperty

    closeObject

    用以判断是否为遮罩层点击的对象

    Declaration
    protected static readonly object closeObject
    Field Value
    object

    Properties

    ActionCommand

    获取点击指令

    Declaration
    public Command ActionCommand { get; }
    Property Value
    Command

    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

    获取或设置对话框标题

    Declaration
    public string Title { get; set; }
    Property Value
    string

    Methods

    ClosingAsync(object)

    根据指令参数对象获取对话框返回对象。

    Declaration
    protected virtual Task<T> ClosingAsync(object o)
    Parameters
    object o

    指令参数对象

    Returns
    Task<T>

    返回已转换的返回对象,无法转换则返回类型的默认值

    OnOpened()

    对话框打开时触发的方法。

    Declaration
    protected virtual void OnOpened()
    In this article
    Back to top Generated by DocFX