Class ManualLayout
Manual layout.
Inheritance
Implements
Inherited Members
Namespace: Forms9Patch
Assembly: Forms9Patch.dll
Syntax
public class ManualLayout : Layout<View>, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, INavigationProxy, IStyleSelectable, IAnimatable, IResourcesProvider, IStyleElement, IFlowDirectionController, IPropertyPropagationController, IVisualController, ITabStopElement, IStylable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, ILayout, ILayoutController, IPaddingElement, IViewContainer<View>, ILayout, IBackground, IShape, IElement
Constructors
ManualLayout()
Constructor for ManualLayout
Declaration
public ManualLayout()
Fields
BackgroundColorProperty
backing store for BackgroundColor property
Declaration
public static readonly BindableProperty BackgroundColorProperty
Field Value
Type | Description |
---|---|
BindableProperty |
BackgroundImageProperty
BackgroundImage backing store
Declaration
public static BindableProperty BackgroundImageProperty
Field Value
Type | Description |
---|---|
BindableProperty |
BorderColorProperty
The boarder color property.
Declaration
public static readonly BindableProperty BorderColorProperty
Field Value
Type | Description |
---|---|
BindableProperty |
BorderRadiusProperty
The boarder radius property.
Declaration
public static readonly BindableProperty BorderRadiusProperty
Field Value
Type | Description |
---|---|
BindableProperty |
BorderWidthProperty
The boarder width property.
Declaration
public static readonly BindableProperty BorderWidthProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ElementShapeProperty
Backing store for the ElementShape property
Declaration
public static readonly BindableProperty ElementShapeProperty
Field Value
Type | Description |
---|---|
BindableProperty |
HasShadowProperty
HasShadow property backing store
Declaration
public static BindableProperty HasShadowProperty
Field Value
Type | Description |
---|---|
BindableProperty |
IgnoreChildrenProperty
The ignore children property.
Declaration
public static readonly BindableProperty IgnoreChildrenProperty
Field Value
Type | Description |
---|---|
BindableProperty |
OutlineColorProperty
Backing store for the outline color property.
Declaration
public static readonly BindableProperty OutlineColorProperty
Field Value
Type | Description |
---|---|
BindableProperty |
OutlineRadiusProperty
Backing store for the outline radius property.
Declaration
public static readonly BindableProperty OutlineRadiusProperty
Field Value
Type | Description |
---|---|
BindableProperty |
OutlineWidthProperty
Backing store for the outline width property.
Declaration
public static readonly BindableProperty OutlineWidthProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ShadowInvertedProperty
Backing store for the ShadowInverted bindable property.
Declaration
public static readonly BindableProperty ShadowInvertedProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
BackgroundColor
Gets/Sets the BackgroundColor property
Declaration
public Color BackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
BackgroundImage
Gets or sets the background image.
Declaration
public Image BackgroundImage { get; set; }
Property Value
Type | Description |
---|---|
Image | The background image. |
BorderColor
Gets or sets the color of the boarder.
Declaration
public Color BorderColor { get; set; }
Property Value
Type | Description |
---|---|
Color | The color of the boarder. |
BorderRadius
Gets or sets the boarder radius.
Declaration
public float BorderRadius { get; set; }
Property Value
Type | Description |
---|---|
Single | The boarder radius. |
BorderWidth
Gets or sets the width of the boarder.
Declaration
public float BorderWidth { get; set; }
Property Value
Type | Description |
---|---|
Single | The width of the boarder. |
ElementShape
Gets/sets the geometry of the element
Declaration
public ElementShape ElementShape { get; set; }
Property Value
Type | Description |
---|---|
ElementShape |
HasShadow
Gets/Sets the HasShadow property
Declaration
public bool HasShadow { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IgnoreChildren
Gets or sets a value indicating whether this ContentView ignore children.
Declaration
public bool IgnoreChildren { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
InstanceId
The Instance Id (for debugging purposes)
Declaration
public int InstanceId { get; }
Property Value
Type | Description |
---|---|
Int32 |
OutlineColor
Gets or sets the color of the outline.
Declaration
public Color OutlineColor { get; set; }
Property Value
Type | Description |
---|---|
Color | The color of the outline. |
OutlineRadius
Gets or sets the outline radius.
Declaration
public float OutlineRadius { get; set; }
Property Value
Type | Description |
---|---|
Single | The outline radius. |
OutlineWidth
Gets or sets the width of the outline.
Declaration
public float OutlineWidth { get; set; }
Property Value
Type | Description |
---|---|
Single | The width of the outline. |
ShadowInverted
Gets or sets a flag indicating if the layout's shadow is inverted. This is a bindable property.
Declaration
public bool ShadowInverted { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
Methods
Description()
Returns a String that describes the current ManualLayout.
Declaration
public virtual string Description()
Returns
Type | Description |
---|---|
String | A String that describes the current ManualLayout. |
LayoutChildren(Double, Double, Double, Double)
processes child layouts
Declaration
protected override void LayoutChildren(double x, double y, double width, double height)
Parameters
Type | Name | Description |
---|---|---|
Double | x | |
Double | y | |
Double | width | |
Double | height |
Overrides
OnChildMeasureInvalidated()
Ons the child measure invalidated.
Declaration
protected override void OnChildMeasureInvalidated()
Overrides
OnMeasure(Double, Double)
processes measurement of layout
Declaration
protected override SizeRequest OnMeasure(double widthConstraint, double heightConstraint)
Parameters
Type | Name | Description |
---|---|---|
Double | widthConstraint | |
Double | heightConstraint |
Returns
Type | Description |
---|---|
SizeRequest |
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. |
Overrides
ShouldInvalidateOnChildAdded(View)
Shoulds the invalidate on child added.
Declaration
protected override bool ShouldInvalidateOnChildAdded(View child)
Parameters
Type | Name | Description |
---|---|---|
View | child | Child. |
Returns
Type | Description |
---|---|
Boolean |
|
Overrides
ShouldInvalidateOnChildRemoved(View)
Shoulds the invalidate on child removed.
Declaration
protected override bool ShouldInvalidateOnChildRemoved(View child)
Parameters
Type | Name | Description |
---|---|---|
View | child | Child. |
Returns
Type | Description |
---|---|
Boolean |
|
Overrides
ToString()
Returns a String that describes the current ManualLayout.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
Events
LayoutChildrenEvent
Occurs when layout children event is triggered.
Declaration
public event EventHandler<ManualLayoutEventArgs> LayoutChildrenEvent
Event Type
Type | Description |
---|---|
EventHandler<ManualLayoutEventArgs> |