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

TabPageHandler Class

A .NET MAUI handler for the TabPage control.

Namespace: DevExpress.Maui.Navigation

Assembly: DevExpress.Maui.Navigation.dll

Declaration

public class TabPageHandler :
    ViewHandler<TabPage, TabControl>,
    IDisposable

Remarks

To add a tab 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 TabPage class:

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