DXCollectionViewHandler Class

A .NET MAUI handler for the DXCollectionView control.

Namespace: DevExpress.Maui.CollectionView

Assembly: DevExpress.Maui.CollectionView.dll

Declaration

public class DXCollectionViewHandler :
    ViewHandler<IDXCollectionView, DXListViewNative>

Remarks

To add a collection view to your .NET MAUI application, follow the steps below:

  1. Install the DevExpress.Maui.CollectionView NuGet package.
  2. In the MauiProgram.cs file, register a handler for the DXCollectionView class:

    using Microsoft.Maui;
    using Microsoft.Maui.Controls.Hosting;
    using Microsoft.Maui.Hosting;
    using DevExpress.Maui.CollectionView;
    
    namespace CollectionViewExample {
        public static class MauiProgram {
            public static MauiApp CreateMauiApp() {
                var builder = MauiApp.CreateBuilder();
                builder
                    .UseMauiApp<App>()
                    .ConfigureMauiHandlers((handlers) => {
                        handlers.AddHandler<IDXCollectionView, DXCollectionViewHandler>();
                    })
                    .ConfigureFonts(fonts =>
                    {
                        fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
                    });
                return builder.Build();
            }
        }
    }
    

Read Tutorial View Example

Implements

Microsoft.Maui.INativeViewHandler
Microsoft.Maui.IViewHandler

Inheritance

Object
Microsoft.Maui.Handlers.ViewHandler
Microsoft.Maui.Handlers.ViewHandler<IDXCollectionView, Com.Devexpress.Dxlistview.DXListViewNative>
DXCollectionViewHandler
See Also