Class ContentView
Forms9Patch ContentView.
Inheritance
Implements
Inherited Members
Namespace: Forms9Patch
Assembly: Forms9Patch.dll
Syntax
public class ContentView : ContentView, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, INavigationProxy, IStyleSelectable, IAnimatable, IResourcesProvider, IStyleElement, IFlowDirectionController, IPropertyPropagationController, IVisualController, ITabStopElement, IStylable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, ILayout, ILayoutController, IPaddingElement, IControlTemplated, ILayout, IBackground, IShape, IElement, IDisposable
Constructors
ContentView()
Initializes a new instance of the ContentView class. Forms9Patch.ContentView is same as Forms9Patch.Frame - but with different default values.
Declaration
public ContentView()
Fields
_f9pId
INTERNAL USE ONLY
Declaration
protected readonly int _f9pId
Field Value
Type | Description |
---|---|
Int32 |
_fallbackBackgroundImage
INTERNAL USE ONLY
Declaration
protected readonly Image _fallbackBackgroundImage
Field Value
Type | Description |
---|---|
Image |
BackgroundColorProperty
Backing store for the background color property.
Declaration
public static readonly BindableProperty BackgroundColorProperty
Field Value
Type | Description |
---|---|
BindableProperty |
BackgroundImageProperty
Backing store for the background image property.
Declaration
public static readonly 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 |
ContentProperty
Backing store key for Content
Declaration
public static readonly BindableProperty ContentProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ElementShapeProperty
Backing store for the element shape property.
Declaration
public static readonly BindableProperty ElementShapeProperty
Field Value
Type | Description |
---|---|
BindableProperty |
HasShadowProperty
Backing store for the has shadow property.
Declaration
public static readonly BindableProperty HasShadowProperty
Field Value
Type | Description |
---|---|
BindableProperty |
IgnoreChildrenProperty
Backing store for the ignore children property.
Declaration
public static readonly BindableProperty IgnoreChildrenProperty
Field Value
Type | Description |
---|---|
BindableProperty |
LimitMinSizeToBackgroundImageSizeProperty
Backing store for the limit minimum size to background image size property.
Declaration
public static readonly BindableProperty LimitMinSizeToBackgroundImageSizeProperty
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 shadow inverted property.
Declaration
public static readonly BindableProperty ShadowInvertedProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
BackgroundColor
Gets or sets the color of the background.
Declaration
public Color BackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
Color | The color of the background. |
BackgroundImage
Gets or sets the background image.
Declaration
public Image BackgroundImage { get; set; }
Property Value
Type | Description |
---|---|
Image | The background image. |
BaseInternalChildren
INTERNAL USE ONLY
Declaration
protected ObservableCollection<Element> BaseInternalChildren { get; }
Property Value
Type | Description |
---|---|
ObservableCollection<Element> |
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. |
Content
Content of Layout
Declaration
public View Content { get; set; }
Property Value
Type | Description |
---|---|
View |
CurrentBackgroundImage
INTERNAL USE ONLY
Declaration
protected Image CurrentBackgroundImage { get; }
Property Value
Type | Description |
---|---|
Image |
ElementShape
Gets or sets the element shape.
Declaration
public ElementShape ElementShape { get; set; }
Property Value
Type | Description |
---|---|
ElementShape | The element shape. |
HasShadow
Gets or sets a value indicating whether this ContentView has a shadow.
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
INTERNAL USE ONLY
Declaration
public int InstanceId { get; }
Property Value
Type | Description |
---|---|
Int32 |
LimitMinSizeToBackgroundImageSize
Gets or sets a value indicating whether this ContentView will limit its minimum size to background image size.
Declaration
public bool LimitMinSizeToBackgroundImageSize { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
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 value indicating whether the shadow is inverted for this ContentView.
Declaration
public bool ShadowInverted { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
Methods
Description()
Declaration
public string Description()
Returns
Type | Description |
---|---|
String |
Dispose()
Disposed the layout and its contents
Declaration
public void Dispose()
Dispose(Boolean)
Dispose the layout and its contents
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing |
LayoutChildren(Double, Double, Double, Double)
Layout out children of this element
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
OnPropertyChanged(String)
Called when a property has changed
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
Type | Name | Description |
---|---|---|
String | propertyName |
Overrides
OnSizeRequest(Double, Double)
Called when Xamarin.Forms requests size of this element
Declaration
protected override SizeRequest OnSizeRequest(double widthConstraint, double heightConstraint)
Parameters
Type | Name | Description |
---|---|---|
Double | widthConstraint | |
Double | heightConstraint |
Returns
Type | Description |
---|---|
SizeRequest |
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()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |