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

DrawerPageHandler Class

A .NET MAUI handler for the DrawerPage control.

Namespace: DevExpress.Maui.Navigation

Assembly: DevExpress.Maui.Navigation.dll

Declaration

public class DrawerPageHandler :
    ViewHandler<DrawerPage, DrawerView>,
    IDisposable

Remarks

To add a drawer page 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 DrawerPage class:

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