menu

MAUI

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

    Show / Hide Table of Contents

    Class ViewExtensions

    Provides a collection of extension methods for enhancing view manipulation and interaction within a Syncfusion DockLayout environment. This static class allows developers to more conveniently manage view docking within their applications.

    Inheritance
    System.Object
    ViewExtensions
    Namespace: Syncfusion.Maui.Core
    Assembly: Syncfusion.Maui.Core.dll
    Syntax
    public static class ViewExtensions : Object

    Methods

    Add(IList<IView>, IView, Dock)

    Adds a view to a collection of child views with an optional docking position. This method simplifies the process of adding views to a DockLayout by automatically setting the dock position.

    Declaration
    public static void Add(this IList<IView> children, IView view, Dock position)
    Parameters
    Type Name Description
    System.Collections.Generic.IList<Microsoft.Maui.IView> children

    The collection of child views to which the new view will be added.

    Microsoft.Maui.IView view

    The view to be added to the collection.

    Dock position

    The desired docking position for the view within the layout (default is Dock.None).

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved