alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class VisualContainer

    Represents a visual container that manages the layout and scrolling behavior of rows and columns in a SfTreeGrid control.

    Inheritance
    object
    SfView
    VisualContainer
    Implements
    IDrawableLayout
    IDrawable
    IAbsoluteLayout
    ILayout
    IView
    IElement
    ITransform
    IContainer
    IList<IView>
    ICollection<IView>
    IEnumerable<IView>
    IEnumerable
    ISafeAreaView
    IPadding
    ICrossPlatformLayout
    IVisualTreeElement
    Inherited Members
    SfView.ArrangeOverride(Rect)
    SfView.Children
    SfView.ClipToBounds
    SfView.GetSemanticsNodesCore(double, double)
    SfView.MeasureOverride(double, double)
    SfView.OnBindingContextChanged()
    SfView.OnDraw(ICanvas, RectF)
    SfView.Padding
    SfView.PaddingProperty
    Namespace: Syncfusion.Maui.TreeGrid
    Assembly: Syncfusion.Maui.TreeGrid.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

    Constructors

    VisualContainer(SfTreeGrid)

    Initializes a new instance of the VisualContainer class.

    Declaration
    public VisualContainer(SfTreeGrid treeGrid)
    Parameters
    Type Name Description
    SfTreeGrid treeGrid

    Properties

    ColumnCount

    Gets or sets the number of columns in the tree grid.

    Declaration
    public int ColumnCount { get; set; }
    Property Value
    Type
    int

    ColumnWidths

    Gets the column widths provider that manages the sizes of columns in the tree grid.

    Declaration
    public IPaddedEditableLineSizeHost ColumnWidths { get; }
    Property Value
    Type
    IPaddedEditableLineSizeHost

    ExtendedHeight

    Gets the total height of the content in the tree grid.

    Declaration
    public double ExtendedHeight { get; }
    Property Value
    Type
    double

    ExtendedWidth

    Gets the total width of the content in the tree grid.

    Declaration
    public double ExtendedWidth { get; }
    Property Value
    Type
    double

    HorizontalOffset

    Gets or sets the horizontal offset of a SfTreeGrid control.

    Declaration
    public double HorizontalOffset { get; set; }
    Property Value
    Type Description
    double

    The horizontal offset of a SfTreeGrid control.

    HorizontalScrollbar

    Gets the horizontal scroll bar information for the control.

    Declaration
    public ScrollInfo HorizontalScrollbar { get; }
    Property Value
    Type
    ScrollInfo

    RowCount

    Gets or sets the number of rows in the tree grid.

    Declaration
    public int RowCount { get; set; }
    Property Value
    Type
    int

    RowHeights

    Gets the row heights provider that manages the sizes of rows in the tree grid.

    Declaration
    public IPaddedEditableLineSizeHost RowHeights { get; }
    Property Value
    Type
    IPaddedEditableLineSizeHost

    ScrollColumns

    Gets the scroll axis for columns, which manages the scrolling behavior of columns in the tree grid.

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

    ScrollOwner

    Gets or sets the scroll viewer.

    Declaration
    public TreeGridScrollView? ScrollOwner { get; }
    Property Value
    Type
    TreeGridScrollView

    ScrollRows

    Gets the scroll axis for rows, which manages the scrolling behavior of rows in the tree grid.

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

    ScrollerHeight

    Gets the height of the scroll owner of a SfTreeGrid control.

    Declaration
    public double ScrollerHeight { get; }
    Property Value
    Type Description
    double

    The height of the scroll owner of a SfTreeGrid control.

    VerticalOffset

    Gets or sets the vertical offset of a SfTreeGrid control.

    Declaration
    public double VerticalOffset { get; set; }
    Property Value
    Type Description
    double

    The vertical offset of a SfTreeGrid control.

    VerticalScrollbar

    Gets the vertical scroll bar information for the control.

    Declaration
    public ScrollInfo VerticalScrollbar { get; }
    Property Value
    Type
    ScrollInfo

    Methods

    ArrangeContent(Rect)

    Arranges the content of the element within the specified bounds.

    Declaration
    protected override Size ArrangeContent(Rect bounds)
    Parameters
    Type Name Description
    Rect bounds

    A rectangle that defines the final area within the parent that this element should use to arrange itself and its children.

    Returns
    Type Description
    Size

    A Size structure that represents the actual size used after arranging the content.

    Overrides
    SfView.ArrangeContent(Rect)

    MeasureContent(double, double)

    Measures the size required for the content, given the specified width and height constraints.

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

    The maximum width, in device-independent units (DIPs), that the content can occupy.

    double heightConstraint

    The maximum height, in device-independent units (DIPs), that the content can occupy.

    Returns
    Type Description
    Size

    A Size structure representing the desired size of the content that fits within the specified constraints.

    Overrides
    SfView.MeasureContent(double, double)

    OnCreateColumnWidths()

    Creates a new instance of a class that implements the IPaddedEditableLineSizeHost interface to manage column widths.

    Declaration
    protected virtual IPaddedEditableLineSizeHost OnCreateColumnWidths()
    Returns
    Type
    IPaddedEditableLineSizeHost

    OnCreateRowHeights()

    Creates a new instance of a class that implements the IPaddedEditableLineSizeHost interface to manage row heights.

    Declaration
    protected virtual IPaddedEditableLineSizeHost OnCreateRowHeights()
    Returns
    Type
    IPaddedEditableLineSizeHost

    OnHandlerChanged()

    Indicates when the handler of the VisualContainer is changed.

    Declaration
    protected override void OnHandlerChanged()
    Overrides
    SfView.OnHandlerChanged()
    Remarks

    The native view needs to be focusable to receive key events in Syncfusion.Maui.TreeGrid.VisualContainer.OnKeyDown(Syncfusion.Maui.Core.Internals.KeyEventArgs) on the Android and Windows platforms. Keyboard navigation does not work without this.

    Implements

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