Xamarin.Android

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PopupView - Xamarin.Android API Reference | Syncfusion Syncfusion.Android.PopupLayout.PopupView.SfPopupLayout. ">

    Show / Hide Table of Contents

    Class PopupView

    The popup view of the Syncfusion.Android.PopupLayout.PopupView.SfPopupLayout.

    Inheritance
    System.Object
    PopupView
    Namespace: Syncfusion.Android.PopupLayout
    Assembly: Syncfusion.SfPopupLayout.Android.dll
    Syntax
    public class PopupView : LinearLayout

    Constructors

    PopupView(Context, IAttributeSet, SfPopupLayout)

    Initializes a new instance of the PopupView class.

    Declaration
    public PopupView(Context context, IAttributeSet attributeSet, SfPopupLayout popup)
    Parameters
    Type Name Description
    Android.Content.Context context

    The Android.Content.Context.

    Android.Util.IAttributeSet attributeSet

    The Android.Util.IAttributeSet.

    SfPopupLayout popup

    Instance of Syncfusion.Android.PopupLayout.PopupView.SfPopupLayout.

    PopupView(Context, IAttributeSet, Int32, SfPopupLayout)

    Initializes a new instance of the PopupView class.

    Declaration
    public PopupView(Context context, IAttributeSet attributeSet, int definedStyle, SfPopupLayout popup)
    Parameters
    Type Name Description
    Android.Content.Context context

    The Android.Content.Context.

    Android.Util.IAttributeSet attributeSet

    The Android.Util.IAttributeSet.

    System.Int32 definedStyle

    The value indicating the defined style.

    SfPopupLayout popup

    Instance of Syncfusion.Android.PopupLayout.PopupView.SfPopupLayout.

    PopupView(Context, IAttributeSet, Int32, Int32, SfPopupLayout)

    Initializes a new instance of the PopupView class.

    Declaration
    public PopupView(Context context, IAttributeSet attributeSet, int definedStyle, int definedResource, SfPopupLayout popup)
    Parameters
    Type Name Description
    Android.Content.Context context

    The Android.Content.Context.

    Android.Util.IAttributeSet attributeSet

    The Android.Util.IAttributeSet.

    System.Int32 definedStyle

    The value indicating the defined style.

    System.Int32 definedResource

    The value indicating the defined Resource

    SfPopupLayout popup

    Instance of Syncfusion.Android.PopupLayout.PopupView.SfPopupLayout.

    PopupView(Context, SfPopupLayout)

    Initializes a new instance of the PopupView class.

    Declaration
    public PopupView(Context context, SfPopupLayout popup)
    Parameters
    Type Name Description
    Android.Content.Context context

    The Android.Content.Context.

    SfPopupLayout popup

    The instance of Syncfusion.Android.PopupLayout.PopupView.SfPopupLayout to which the PopupView is associated with.

    PopupView(IntPtr, JniHandleOwnership, SfPopupLayout)

    Initializes a new instance of the PopupView class.

    Declaration
    public PopupView(IntPtr javaReference, JniHandleOwnership transfer, SfPopupLayout popup)
    Parameters
    Type Name Description
    System.IntPtr javaReference

    The System.IntPtr.

    Android.Runtime.JniHandleOwnership transfer

    The Android.Runtime.JniHandleOwnership.

    SfPopupLayout popup

    Instance of Syncfusion.Android.PopupLayout.PopupView.SfPopupLayout.

    Properties

    AcceptButtonText

    Gets or sets the text of the accept button in the footer.

    Declaration
    public string AcceptButtonText { get; set; }
    Property Value
    Type Description
    System.String

    The text of the accept button in the footer.

    AnimationDuration

    Gets or sets the duration in milliseconds of the animation played at the opening and closing of the PopupView.

    Declaration
    public int AnimationDuration { get; set; }
    Property Value
    Type Description
    System.Int32

    The duration in milliseconds of the animation played at the opening and closing of the PopupView.

    AnimationEasing

    Gets or sets the animation easing effect to be applied to the PopupView's opening and closing animation.

    Declaration
    public AnimationEasing AnimationEasing { get; set; }
    Property Value
    Type Description
    AnimationEasing

    The animation easing effect to be applied for the PopupView when it opens and closes.

    AnimationMode

    Gets or sets the animation to be applied for the PopupView when it opens and closes.

    Declaration
    public AnimationMode AnimationMode { get; set; }
    Property Value
    Type Description
    AnimationMode

    The animation to be applied for the PopupView when it opens and closes.

    AppearanceMode

    Gets or sets the type of layout template of the PopupView.

    Declaration
    public AppearanceMode AppearanceMode { get; set; }
    Property Value
    Type Description
    AppearanceMode

    The type of layout template of the PopupView.

    ContentView

    Gets or sets the CustomView to be loaded in the body of the PopupView.

    Declaration
    public View ContentView { get; set; }
    Property Value
    Type Description
    Android.Views.View

    The CustomView to be loaded in the body of the PopupView.

    DeclineButtonText

    Gets or sets the text of the decline button in the footer.

    Declaration
    public string DeclineButtonText { get; set; }
    Property Value
    Type Description
    System.String

    The text of the decline button in the footer.

    FooterHeight

    Gets or sets the footer height of the PopupView.

    Declaration
    public int FooterHeight { get; set; }
    Property Value
    Type Description
    System.Int32

    The footer height of the PopupView.

    FooterView

    Gets or sets the CustomView to be loaded in the footer of the PopupView.

    Declaration
    public View FooterView { get; set; }
    Property Value
    Type Description
    Android.Views.View

    The CustomView to be loaded in the footer of the PopupView.

    HeaderHeight

    Gets or sets the header height of the PopupView.

    Declaration
    public int HeaderHeight { get; set; }
    Property Value
    Type Description
    System.Int32

    The header height of the PopupView.

    HeaderTitle

    Gets or sets the Header title of the PopupView.

    Declaration
    public string HeaderTitle { get; set; }
    Property Value
    Type Description
    System.String

    The Header title of the PopupView.

    HeaderView

    Gets or sets the CustomView to be loaded in the header of the PopupView.

    Declaration
    public View HeaderView { get; set; }
    Property Value
    Type Description
    Android.Views.View

    The CustomView to be loaded in the header of the PopupView.

    HeightRequest

    Gets or sets the height of the PopupView.

    Declaration
    public double HeightRequest { get; set; }
    Property Value
    Type Description
    System.Double

    PopupStyle

    Gets or sets the style to be applied to the PopupView in Syncfusion.Android.PopupLayout.PopupView.SfPopupLayout.

    Declaration
    public PopupStyle PopupStyle { get; set; }
    Property Value
    Type Description
    PopupStyle

    The style to be applied to the PopupView in Syncfusion.Android.PopupLayout.PopupView.SfPopupLayout.

    ShowCloseButton

    Gets or sets a value indicating whether to show the close button in the header.

    Declaration
    public bool ShowCloseButton { get; set; }
    Property Value
    Type Description
    System.Boolean

    A boolean value indicating whether to show the close button in the header.

    ShowFooter

    Gets or sets a value indicating whether the footer is to be included in the PopupView.

    Declaration
    public bool ShowFooter { get; set; }
    Property Value
    Type Description
    System.Boolean

    A value indicating whether the footer is to be included in the PopupView.

    ShowHeader

    Gets or sets a value indicating whether the header is to be included in the PopupView.

    Declaration
    public bool ShowHeader { get; set; }
    Property Value
    Type Description
    System.Boolean

    A value indicating whether the header is to be included in the PopupView.

    StartX

    Gets or sets the x-position of the PopupView.

    Declaration
    public int StartX { get; set; }
    Property Value
    Type Description
    System.Int32

    The x-position of the PopupView.

    StartY

    Gets or sets the y-position of the PopupView.

    Declaration
    public int StartY { get; set; }
    Property Value
    Type Description
    System.Int32

    The y-position of the PopupView.

    WidthRequest

    Gets or sets the width of the PopupView.

    Declaration
    public double WidthRequest { get; set; }
    Property Value
    Type Description
    System.Double

    Methods

    add_AcceptButtonClicked(PopupView.AcceptEventHandler)

    Declaration
    public void add_AcceptButtonClicked(PopupView.AcceptEventHandler value)
    Parameters
    Type Name Description
    PopupView.AcceptEventHandler value

    add_DeclineButtonClicked(PopupView.DeclineEventHandler)

    Declaration
    public void add_DeclineButtonClicked(PopupView.DeclineEventHandler value)
    Parameters
    Type Name Description
    PopupView.DeclineEventHandler value

    Dispose()

    Perform final clean up before it is released from memory.

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Disposes all the objects in the PopupView.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    Value indicating whether to dispose the objects or not.

    OnDraw(Canvas)

    This method is implemented for clipping the PopupView

    Declaration
    protected override void OnDraw(Canvas canvas)
    Parameters
    Type Name Description
    Android.Graphics.Canvas canvas

    The canvas on which the background will be drawn.

    OnLayout(Boolean, Int32, Int32, Int32, Int32)

    Called from layout when this view should assign a size and position to each of its children.

    Declaration
    protected override void OnLayout(bool changed, int left, int top, int right, int bottom)
    Parameters
    Type Name Description
    System.Boolean changed

    A value indicating whether this is a new size or position for this view.

    System.Int32 left

    Left position, relative to parent.

    System.Int32 top

    Top position, relative to parent.

    System.Int32 right

    Right position, relative to parent.

    System.Int32 bottom

    Bottom position, relative to parent.

    OnTouchEvent(MotionEvent)

    This method will be called based on the view touch

    Declaration
    public override bool OnTouchEvent(MotionEvent e)
    Parameters
    Type Name Description
    Android.Views.MotionEvent e

    The MotionEvent object.

    Returns
    Type Description
    System.Boolean

    Returns a boolean value

    remove_AcceptButtonClicked(PopupView.AcceptEventHandler)

    Declaration
    public void remove_AcceptButtonClicked(PopupView.AcceptEventHandler value)
    Parameters
    Type Name Description
    PopupView.AcceptEventHandler value

    remove_DeclineButtonClicked(PopupView.DeclineEventHandler)

    Declaration
    public void remove_DeclineButtonClicked(PopupView.DeclineEventHandler value)
    Parameters
    Type Name Description
    PopupView.DeclineEventHandler value

    Events

    AcceptButtonClicked

    Occurs when accept button is clicked.

    Declaration
    public event PopupView.AcceptEventHandler AcceptButtonClicked
    Event Type
    Type Description
    PopupView.AcceptEventHandler

    DeclineButtonClicked

    Occurs when Decline button is clicked.

    Declaration
    public event PopupView.DeclineEventHandler DeclineButtonClicked
    Event Type
    Type Description
    PopupView.DeclineEventHandler
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved