Show / Hide Table of Contents

    Class ManualLayout

    Manual layout.

    Inheritance
    Object
    BindableObject
    Element
    NavigableElement
    VisualElement
    View
    Layout
    Layout<View>
    ManualLayout
    SegmentedControl
    Implements
    INotifyPropertyChanged
    IAnimatable
    ITabStopElement
    IViewController
    IVisualElementController
    IElementController
    IGestureController
    IGestureRecognizers
    ILayout
    ILayoutController
    IViewContainer<View>
    ILayout
    IBackground
    IShape
    IElement
    Inherited Members
    Layout<View>.OnChildAdded(Element)
    Layout<View>.OnChildRemoved(Element)
    Xamarin.Forms.Layout<Xamarin.Forms.View>.OnChildRemoved(Xamarin.Forms.Element, System.Int32)
    Layout<View>.OnAdded(View)
    Layout<View>.OnRemoved(View)
    Layout<View>.Children
    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.OnBindingContextChanged()
    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.OnChildrenReordered()
    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 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

    true if ignore children; otherwise, false.

    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

    true if this instance's shadow is inverted; otherwise, false.

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

    OnChildMeasureInvalidated()

    Ons the child measure invalidated.

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

    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
    VisualElement.OnMeasure(Double, Double)

    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
    Element.OnPropertyChanged(String)

    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 ManualLayout.

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

    Events

    LayoutChildrenEvent

    Occurs when layout children event is triggered.

    Declaration
    public event EventHandler<ManualLayoutEventArgs> LayoutChildrenEvent
    Event Type
    Type Description
    EventHandler<ManualLayoutEventArgs>

    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
    Xamarin.Forms.IViewContainer<T>
    ILayout
    IBackground
    IShape
    IElement

    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