Show / Hide Table of Contents

    Class ContentView

    Forms9Patch ContentView.

    Inheritance
    Object
    BindableObject
    Element
    NavigableElement
    VisualElement
    View
    Layout
    TemplatedView
    ContentView
    ContentView
    Frame
    Implements
    INotifyPropertyChanged
    IAnimatable
    ITabStopElement
    IViewController
    IVisualElementController
    IElementController
    IGestureController
    IGestureRecognizers
    ILayout
    ILayoutController
    ILayout
    IBackground
    IShape
    IElement
    IDisposable
    Inherited Members
    ContentView.OnBindingContextChanged()
    TemplatedView.ControlTemplateProperty
    TemplatedView.OnApplyTemplate()
    TemplatedView.OnChildRemoved(Element)
    Xamarin.Forms.TemplatedView.OnChildRemoved(Xamarin.Forms.Element, System.Int32)
    TemplatedView.GetTemplateChild(String)
    TemplatedView.ControlTemplate
    Layout.IsClippedToBoundsProperty
    Layout.CascadeInputTransparentProperty
    Layout.PaddingProperty
    Layout.ForceLayout()
    Layout.LayoutChildIntoBoundingRegion(VisualElement, Rectangle)
    Layout.LowerChild(View)
    Layout.RaiseChild(View)
    Layout.InvalidateLayout()
    Layout.OnChildMeasureInvalidated(Object, EventArgs)
    Layout.OnSizeAllocated(Double, Double)
    Layout.UpdateChildrenLayout()
    Layout.IsClippedToBounds
    Layout.Padding
    Layout.CascadeInputTransparent
    Layout.LayoutChanged
    View.VerticalOptionsProperty
    View.HorizontalOptionsProperty
    View.MarginProperty
    View.GetChildElements(Point)
    View.GestureController
    View.GestureRecognizers
    View.IGestureController.CompositeGestureRecognizers
    View.HorizontalOptions
    View.Margin
    View.VerticalOptions
    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.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.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.OnParentSet()
    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)
    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

    true if has shadow; otherwise, false.

    IgnoreChildren

    Gets or sets a value indicating whether this ContentView ignore children.

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

    true if ignore children; otherwise, false.

    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

    true if limit minimum size to background image size; otherwise, false.

    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

    true if shadow inverted; otherwise, false.

    Methods

    Description()

    Returns a String that describes the current Frame.

    Declaration
    public string Description()
    Returns
    Type Description
    String

    A String that describes the current Frame.

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

    OnChildMeasureInvalidated()

    Ons the child measure invalidated.

    Declaration
    protected override void OnChildMeasureInvalidated()
    Overrides
    Layout.OnChildMeasureInvalidated()

    OnPropertyChanged(String)

    Called when a property has changed

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

    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
    TemplatedView.OnSizeRequest(Double, Double)

    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

    true, if invalidate on child added was shoulded, false otherwise.

    Overrides
    Layout.ShouldInvalidateOnChildAdded(View)

    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

    true, if invalidate on child removed was shoulded, false otherwise.

    Overrides
    Layout.ShouldInvalidateOnChildRemoved(View)

    ToString()

    Returns a String that describes the current Frame.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Xamarin.Forms.IAnimatable
    Xamarin.Forms.ITabStopElement
    Xamarin.Forms.IViewController
    Xamarin.Forms.IVisualElementController
    Xamarin.Forms.IElementController
    Xamarin.Forms.Internals.IGestureController
    Xamarin.Forms.IGestureRecognizers
    Xamarin.Forms.ILayout
    Xamarin.Forms.ILayoutController
    ILayout
    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(View)
    HardwareKeyListenerExtensions.ClearHardwareKeyListeners(View)
    HardwareKeyListenerExtensions.AddHardwareKeyListener(View, String, HardwareKeyModifierKeys, String, EventHandler<HardwareKeyEventArgs>)
    HardwareKeyListenerExtensions.AddHardwareKeyListener(View, String, HardwareKeyModifierKeys, EventHandler<HardwareKeyEventArgs>)
    HardwareKeyListenerExtensions.AddHardwareKeyListener(View, String, EventHandler<HardwareKeyEventArgs>)
    HardwareKeyListenerExtensions.AddHardwareKeyListener(View, String)
    HardwareKeyListenerExtensions.AddHardwareKeyListener(View, HardwareKeyListener)
    HardwareKeyListenerExtensions.RemoveHardwareKeyListener(View, String, HardwareKeyModifierKeys)
    HardwareKeyListenerExtensions.RemoveHardwareKeyListener(View, HardwareKeyListener)
    HardwareKeyListenerExtensions.HardwareKeyFocus(View)
    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