Class BubblePopup
Forms9Patch Bubble pop-up.
Inheritance
Implements
Inherited Members
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 |
|
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
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
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. |