Show / Hide Table of Contents

    Class BubblePopup

    Forms9Patch Bubble pop-up.

    Inheritance
    Object
    BindableObject
    Element
    NavigableElement
    VisualElement
    Page
    TemplatedPage
    ContentPage
    PopupPage
    Forms9Patch.PopupBase
    BubblePopup
    Alert
    TargetedMenu
    TargetedToast
    Implements
    INotifyPropertyChanged
    IAnimatable
    ITabStopElement
    ILayout
    IPageController
    IVisualElementController
    IElementController
    IElementConfiguration<Page>
    IPopup
    IBackground
    IShape
    IElement
    IDisposable
    Inherited Members
    PopupPage.BackgroundClicked
    PopupPage.IsAnimationEnabledProperty
    PopupPage.IsAnimationEnabled
    PopupPage.HasSystemPaddingProperty
    PopupPage.HasSystemPadding
    PopupPage.AnimationProperty
    PopupPage.Animation
    PopupPage.SystemPaddingProperty
    PopupPage.SystemPadding
    PopupPage.SystemPaddingSidesProperty
    PopupPage.SystemPaddingSides
    PopupPage.CloseWhenBackgroundIsClickedProperty
    PopupPage.CloseWhenBackgroundIsClicked
    PopupPage.BackgroundInputTransparentProperty
    PopupPage.BackgroundInputTransparent
    PopupPage.HasKeyboardOffsetProperty
    PopupPage.HasKeyboardOffset
    PopupPage.KeyboardOffsetProperty
    PopupPage.KeyboardOffset
    PopupPage.OnBackButtonPressed()
    PopupPage.OnAppearingAnimationEnd()
    PopupPage.OnDisappearingAnimationBegin()
    PopupPage.OnDisappearingAnimationEnd()
    PopupPage.OnAppearingAnimationBeginAsync()
    PopupPage.OnAppearingAnimationEndAsync()
    PopupPage.OnDisappearingAnimationBeginAsync()
    PopupPage.OnDisappearingAnimationEndAsync()
    PopupPage.OnBackgroundClicked()
    ContentPage.ContentProperty
    ContentPage.OnBindingContextChanged()
    TemplatedPage.ControlTemplateProperty
    TemplatedPage.OnApplyTemplate()
    TemplatedPage.OnChildRemoved(Element)
    Xamarin.Forms.TemplatedPage.OnChildRemoved(Xamarin.Forms.Element, System.Int32)
    TemplatedPage.GetTemplateChild(String)
    TemplatedPage.ControlTemplate
    Page.BusySetSignalName
    Page.AlertSignalName
    Page.PromptSignalName
    Page.ActionSheetSignalName
    Page.BackgroundImageSourceProperty
    Page.IsBusyProperty
    Page.PaddingProperty
    Page.TitleProperty
    Page.IconImageSourceProperty
    Page.DisplayActionSheet(String, String, String, String[])
    Page.DisplayAlert(String, String, String)
    Page.DisplayAlert(String, String, String, String)
    Page.DisplayPromptAsync(String, String, String, String, String, Int32, Keyboard, String)
    Page.ForceLayout()
    Page.SendBackButtonPressed()
    Page.OnAppearing()
    Page.OnChildMeasureInvalidated(Object, EventArgs)
    Page.OnDisappearing()
    Page.OnParentSet()
    Page.OnSizeAllocated(Double, Double)
    Page.UpdateChildrenLayout()
    Page.On<T>()
    Page.BackgroundImageSource
    Page.IconImageSource
    Page.IsBusy
    Page.Padding
    Page.Title
    Page.ToolbarItems
    Page.LayoutChanged
    Page.Appearing
    Page.Disappearing
    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.IsFocusedProperty
    VisualElement.FlowDirectionProperty
    VisualElement.TabIndexProperty
    VisualElement.IsTabStopProperty
    VisualElement.OnTabIndexPropertyChanged(Int32, Int32)
    VisualElement.TabIndexDefaultValueCreator()
    VisualElement.OnTabStopPropertyChanged(Boolean, Boolean)
    VisualElement.TabStopDefaultValueCreator()
    VisualElement.BatchBegin()
    VisualElement.BatchCommit()
    VisualElement.Focus()
    VisualElement.Layout(Rectangle)
    VisualElement.Measure(Double, Double, MeasureFlags)
    VisualElement.Unfocus()
    VisualElement.InvalidateMeasure()
    VisualElement.OnChildAdded(Element)
    VisualElement.OnChildrenReordered()
    VisualElement.OnMeasure(Double, Double)
    VisualElement.SizeAllocated(Double, Double)
    VisualElement.IVisualElementController.InvalidateMeasure(InvalidationTrigger)
    VisualElement.ChangeVisualState()
    VisualElement.Visual
    VisualElement.FlowDirection
    VisualElement.IVisualElementController.EffectiveFlowDirection
    VisualElement.AnchorX
    VisualElement.AnchorY
    VisualElement.BackgroundColor
    VisualElement.Background
    VisualElement.Behaviors
    VisualElement.Bounds
    VisualElement.Height
    VisualElement.HeightRequest
    VisualElement.InputTransparent
    VisualElement.IsEnabled
    VisualElement.IsFocused
    VisualElement.IsVisible
    VisualElement.MinimumHeightRequest
    VisualElement.MinimumWidthRequest
    VisualElement.Opacity
    VisualElement.Rotation
    VisualElement.RotationX
    VisualElement.RotationY
    VisualElement.Scale
    VisualElement.ScaleX
    VisualElement.ScaleY
    VisualElement.TabIndex
    VisualElement.IsTabStop
    VisualElement.TranslationX
    VisualElement.TranslationY
    VisualElement.Triggers
    VisualElement.Width
    VisualElement.WidthRequest
    VisualElement.X
    VisualElement.Y
    VisualElement.Clip
    VisualElement.Resources
    VisualElement.ChildrenReordered
    VisualElement.Focused
    VisualElement.MeasureInvalidated
    VisualElement.SizeChanged
    VisualElement.Unfocused
    NavigableElement.Navigation
    NavigableElement.Style
    NavigableElement.StyleClass
    NavigableElement.class
    Element.MenuProperty
    Element.AutomationIdProperty
    Element.ClassIdProperty
    Element.GetMenu(BindableObject)
    Element.SetMenu(BindableObject, Menu)
    Element.IElementController.SetValueFromRenderer(BindableProperty, Object)
    Element.FindByName(String)
    Element.RemoveDynamicResource(BindableProperty)
    Element.SetDynamicResource(BindableProperty, String)
    Element.AutomationId
    Element.ClassId
    Element.Effects
    Element.Id
    Element.StyleId
    Element.Parent
    Element.ChildAdded
    Element.ChildRemoved
    Element.DescendantAdded
    Element.DescendantRemoved
    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.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Forms9Patch
    Assembly: Forms9Patch.dll
    Syntax
    public class BubblePopup : 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

    BubblePopup(Segment, TimeSpan)

    Initializes a new instance of the BubblePopup class.

    Declaration
    public BubblePopup(Segment segment, TimeSpan popAfter = default(TimeSpan))
    Parameters
    Type Name Description
    Segment segment
    TimeSpan popAfter

    BubblePopup(VisualElement, TimeSpan)

    Initializes a new instance of the BubblePopup class.

    Declaration
    public BubblePopup(VisualElement target, TimeSpan popAfter = default(TimeSpan))
    Parameters
    Type Name Description
    VisualElement target

    Target.

    TimeSpan popAfter

    Pop after TimeSpan.

    BubblePopup(VisualElement, Point, TimeSpan)

    Initializes a new instance of the BubblePopup class.

    Declaration
    public BubblePopup(VisualElement target, Point point, TimeSpan popAfter = default(TimeSpan))
    Parameters
    Type Name Description
    VisualElement target

    Target.

    Point point

    Point.

    TimeSpan popAfter

    Pop after TimeSpan.

    Fields

    PointerCornerRadiusProperty

    The pointer corner radius property. Defaults to OutlineCornerRadius if not set.

    Declaration
    public static readonly BindableProperty PointerCornerRadiusProperty
    Field Value
    Type Description
    BindableProperty

    PointerDirectionProperty

    Backing store for pointer direction property.

    Declaration
    public static readonly BindableProperty PointerDirectionProperty
    Field Value
    Type Description
    BindableProperty

    PointerLengthProperty

    Backing store for pointer length property.

    Declaration
    public static readonly BindableProperty PointerLengthProperty
    Field Value
    Type Description
    BindableProperty

    PointerTipRadiusProperty

    Backing store for pointer tip radius property.

    Declaration
    public static readonly BindableProperty PointerTipRadiusProperty
    Field Value
    Type Description
    BindableProperty

    PointProperty

    backing store for Point property

    Declaration
    public static readonly BindableProperty PointProperty
    Field Value
    Type Description
    BindableProperty

    PreferredPointerDirectionProperty

    backing store for PreferredPointerDirection property

    Declaration
    public static readonly BindableProperty PreferredPointerDirectionProperty
    Field Value
    Type Description
    BindableProperty

    TargetBiasProperty

    The target bias property backing Store.

    Declaration
    public static readonly BindableProperty TargetBiasProperty
    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.

    Point

    Gets/Sets the Point property

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

    PointerCornerRadius

    Gets or sets the pointer corner radius.

    Declaration
    public float PointerCornerRadius { get; set; }
    Property Value
    Type Description
    Single

    The pointer corner radius.

    PointerDirection

    Gets or sets the direction in which the pointer pointing.

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

    The pointer direction.

    PointerLength

    Gets or sets the length of the bubble layout's pointer.

    Declaration
    public float PointerLength { get; set; }
    Property Value
    Type Description
    Single

    The length of the pointer.

    PointerTipRadius

    Gets or sets the radius of the bubble's pointer tip.

    Declaration
    public float PointerTipRadius { get; set; }
    Property Value
    Type Description
    Single

    The pointer tip radius.

    PreferredPointerDirection

    Gets/Sets the PreferredPointerDirection property

    Declaration
    public PointerDirection PreferredPointerDirection { get; set; }
    Property Value
    Type Description
    PointerDirection

    TargetBias

    Gets or sets the bias (0.0 is start; 0.5 is center; 1.0 is end; greater than 1.0 is pixels from start; less than 0.0 is pixels from end)of the pointer relative to the chosen face on the target.

    Declaration
    public double TargetBias { get; set; }
    Property Value
    Type Description
    Double

    The target bias.

    UsePoint

    Gets or sets a value indicating whether this BubblePopup will target Point (a point in the target) vs. the border of the target.

    Declaration
    public bool UsePoint { get; set; }
    Property Value
    Type Description
    Boolean

    true if use point; otherwise, false.

    Methods

    Available(Double, Double, Rectangle)

    How much space is available for a popup of width and height?

    Declaration
    protected Thickness Available(double width, double height, Rectangle targetBounds)
    Parameters
    Type Name Description
    Double width
    Double height
    Rectangle targetBounds
    Returns
    Type Description
    Thickness

    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
    PopupPage.LayoutChildren(Double, Double, Double, Double)
    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.

    OnAppearingAnimationBegin()

    Called when popup is starting to appear

    Declaration
    protected override void OnAppearingAnimationBegin()
    Overrides
    Forms9Patch.PopupBase.OnAppearingAnimationBegin()

    OnPropertyChanged(String)

    Call this method from a child class to notify that a change happened on a property.

    Declaration
    protected override void OnPropertyChanged(string propertyName = null)
    Parameters
    Type Name Description
    String propertyName

    The name of the property that changed.

    Overrides
    Forms9Patch.PopupBase.OnPropertyChanged(System.String)

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Xamarin.Forms.IAnimatable
    Xamarin.Forms.ITabStopElement
    Xamarin.Forms.ILayout
    Xamarin.Forms.IPageController
    Xamarin.Forms.IVisualElementController
    Xamarin.Forms.IElementController
    Xamarin.Forms.IElementConfiguration<TElement>
    IPopup
    IBackground
    IShape
    IElement
    System.IDisposable

    Extension Methods

    VisualElementExtensions.IsDescendentOf(Element, Element)
    VisualElementExtensions.IsAncestorOf(Element, Element)
    VisualElementExtensions.BoundsInWindowCoord(VisualElement)
    VisualElementExtensions.BoundsInElementCoord(VisualElement, VisualElement)
    VisualElementExtensions.LocationInWindowCoord(VisualElement)
    VisualElementExtensions.PointInWindowCoord(VisualElement, Point)
    VisualElementExtensions.LocationInElementCoord(VisualElement, VisualElement)
    VisualElementExtensions.PointInElementCoord(VisualElement, Point, VisualElement)
    VisualElementExtensions.HitTest(VisualElement, Point, VisualElement)
    VisualElementExtensions.GestureListener(VisualElement)
    VisualElementExtensions.FindChildrenWithPropertyAndOfType<T>(VisualElement, String, List<T>)
    VisualElementExtensions.FindChildrenWithProperty(VisualElement, String)
    VisualElementExtensions.FindVisualElementsOfType<T>(VisualElement)
    VisualElementExtensions.FindChildWithFocus(Element)
    VisualElementExtensions.FindAncestorOfType(Element, Type)
    VisualElementExtensions.IsInVisibleViewTree(VisualElement)
    ElementExtensions.AncestorOfBaseType<T>(Element)
    ElementExtensions.Ancestor<T>(Element)
    ElementExtensions.IsInNativeLayout(VisualElement)
    ElementExtensions.SetIsInNativeLayout(VisualElement, Boolean)
    ElementExtensions.GetRenderer(VisualElement)
    ElementExtensions.HasRenderer(VisualElement)
    HardwareKeyListenerExtensions.GetHardwareKeyListeners(PopupBase)
    HardwareKeyListenerExtensions.ClearHardwareKeyListeners(PopupBase)
    HardwareKeyListenerExtensions.AddHardwareKeyListener(PopupBase, String, HardwareKeyModifierKeys, String, EventHandler<HardwareKeyEventArgs>)
    HardwareKeyListenerExtensions.AddHardwareKeyListener(PopupBase, String, HardwareKeyModifierKeys, EventHandler<HardwareKeyEventArgs>)
    HardwareKeyListenerExtensions.AddHardwareKeyListener(PopupBase, String, EventHandler<HardwareKeyEventArgs>)
    HardwareKeyListenerExtensions.AddHardwareKeyListener(PopupBase, String)
    HardwareKeyListenerExtensions.AddHardwareKeyListener(PopupBase, HardwareKeyListener)
    HardwareKeyListenerExtensions.RemoveHardwareKeyListener(PopupBase, String, HardwareKeyModifierKeys)
    HardwareKeyListenerExtensions.RemoveHardwareKeyListener(PopupBase, HardwareKeyListener)
    HardwareKeyListenerExtensions.HardwareKeyFocus(PopupBase)
    HardwareKeyListenerExtensions.HardwareKeyUnfocus(VisualElement)
    DebugExtensions.AddToCensus(Object)
    DebugExtensions.RemoveFromCensus(Object)
    ReflectionExtensions.GetProperties(Object)
    ReflectionExtensions.GetProperty(Object, String)
    ReflectionExtensions.PropertyNames(Object)
    ReflectionExtensions.PropertyExists(Object, String)
    ReflectionExtensions.HasProperty(Object, String)
    ReflectionExtensions.GetPropertyValue(Object, String)
    ReflectionExtensions.SetPropertyValue(Object, String, Object)
    ReflectionExtensions.GetFieldValue(Object, String)
    ReflectionExtensions.SetFieldValue(Object, String, Object)
    ReflectionExtensions.CallMethod(Object, String, Object[])
    Back to top Copyright © 2018 42nd Parallel