menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class VisualContainer - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class VisualContainer

    A scrollable visual container that holds the item elements. Handles the arrange and measure logics of all elements.

    Inheritance
    System.Object
    SfView
    VisualContainer
    Implements
    IDrawableLayout
    Microsoft.Maui.Graphics.IDrawable
    Microsoft.Maui.IAbsoluteLayout
    Microsoft.Maui.ILayout
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IContainer
    System.Collections.Generic.IList<Microsoft.Maui.IView>
    System.Collections.Generic.ICollection<Microsoft.Maui.IView>
    System.Collections.Generic.IEnumerable<Microsoft.Maui.IView>
    System.Collections.IEnumerable
    Microsoft.Maui.ISafeAreaView
    Microsoft.Maui.IPadding
    Microsoft.Maui.ICrossPlatformLayout
    Microsoft.Maui.IVisualTreeElement
    Inherited Members
    SfView.ArrangeOverride(Rect)
    SfView.Children
    SfView.ClipToBounds
    SfView.GetSemanticsNodesCore(Double, Double)
    SfView.IDrawableLayout.DrawingOrder
    SfView.IDrawableLayout.InvalidateDrawable()
    SfView.MeasureOverride(Double, Double)
    SfView.OnBindingContextChanged()
    SfView.OnDraw(ICanvas, RectF)
    SfView.OnHandlerChanged()
    SfView.Padding
    Namespace: Syncfusion.Maui.ListView
    Assembly: Syncfusion.Maui.ListView.dll
    Syntax
    public class VisualContainer : SfView, IDrawableLayout, IDrawable, IAbsoluteLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout, IVisualTreeElement, ISemanticsProvider

    Constructors

    VisualContainer()

    Initializes a new instance of the VisualContainer class.

    Declaration
    public VisualContainer()

    Properties

    ScrollRows

    Gets a reference to the ScrollAxisBase instance which contains the information of row lines.

    Declaration
    public ScrollAxisBase ScrollRows { get; }
    Property Value
    Type
    ScrollAxisBase

    Methods

    ArrangeContent(Rect)

    ArrangeContent method.

    Declaration
    protected override Size ArrangeContent(Rect bounds)
    Parameters
    Type Name Description
    Microsoft.Maui.Graphics.Rect bounds

    The bounds.

    Returns
    Type Description
    Microsoft.Maui.Graphics.Size

    It returns the size.

    Overrides
    SfView.ArrangeContent(Rect)

    CreateScrollAxis(Boolean, IScrollBar, ILineSizeHost)

    Creates a new instance of .

    Declaration
    protected virtual ScrollAxisBase CreateScrollAxis(bool pixelScroll, IScrollBar scrollBar, ILineSizeHost lineSizes)
    Parameters
    Type Name Description
    System.Boolean pixelScroll

    A boolean value denoting pixel or line scrolling.

    IScrollBar scrollBar

    The scroll bar.

    ILineSizeHost lineSizes

    The line sizes.

    Returns
    Type Description
    ScrollAxisBase

    Returns the ScrollAxisBase.

    MeasureContent(Double, Double)

    MeasureContent method.

    Declaration
    protected override Size MeasureContent(double widthConstraint, double heightConstraint)
    Parameters
    Type Name Description
    System.Double widthConstraint

    The width.

    System.Double heightConstraint

    The height.

    Returns
    Type Description
    Microsoft.Maui.Graphics.Size

    It returns the size.

    Overrides
    SfView.MeasureContent(Double, Double)

    Implements

    IDrawableLayout
    Microsoft.Maui.Graphics.IDrawable
    Microsoft.Maui.IAbsoluteLayout
    Microsoft.Maui.ILayout
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IContainer
    System.Collections.Generic.IList<>
    System.Collections.Generic.ICollection<>
    System.Collections.Generic.IEnumerable<>
    System.Collections.IEnumerable
    Microsoft.Maui.ISafeAreaView
    Microsoft.Maui.IPadding
    Microsoft.Maui.ICrossPlatformLayout
    Microsoft.Maui.IVisualTreeElement
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved