You are viewing help content for pre-release software. This document and the features it describes are subject to change.

DrawerViewHandler Class

A .NET MAUI handler for the DrawerView control.

Namespace: DevExpress.Maui.Navigation

Assembly: DevExpress.Maui.Navigation.dll

Declaration

public class DrawerViewHandler :
    ViewHandler<DrawerView, DrawerView>,
    IDisposable

Remarks

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

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

    using Microsoft.Maui;
    using Microsoft.Maui.Hosting;
    using Microsoft.Maui.Controls.Hosting;
    using DevExpress.Maui.Navigation;
    
    namespace DrawerViewExample {
        public static class MauiProgram {
            public static MauiApp CreateMauiApp() {
                var builder = MauiApp.CreateBuilder();
                builder
                    .ConfigureMauiHandlers((handlers) => {
                        handlers.AddHandler<DrawerView, DrawerViewHandler>();
                    })
                    .UseMauiApp<App>()
                    .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<DrawerView, Com.Devexpress.Navigation.DrawerView>
DrawerViewHandler
See Also