TextEditHandler Class

A .NET MAUI handler for the TextEdit control.

Namespace: DevExpress.Maui.Editors

Assembly: DevExpress.Maui.Editors.dll

Declaration

public class TextEditHandler :
    EditorsHandler<TextEdit, TextEdit>

Remarks

To add a single-line text editor to your .NET MAUI application, follow the steps below:

  1. Install the DevExpress.Maui.Editors NuGet package.
  2. In the MauiProgram.cs file, call the UseDevExpress method to register a handler for the TextEdit class:

    using Microsoft.Maui;
    using Microsoft.Maui.Hosting;
    using Microsoft.Maui.Controls.Hosting;
    using DevExpress.Maui.Editors;
    
    namespace TextEditExample {
        public static class MauiProgram {
            public static MauiApp CreateMauiApp() {
                var builder = MauiApp.CreateBuilder();
                builder
                    .UseDevExpress()
                    .UseMauiApp<App>()
                    .ConfigureFonts(fonts => {
                        fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
                    });
                return builder.Build();
            }
        }
    }
    

View Example

Implements

Microsoft.Maui.INativeViewHandler
Microsoft.Maui.IViewHandler

Inheritance

Object
Microsoft.Maui.Handlers.ViewHandler
Microsoft.Maui.Handlers.ViewHandler<TextEdit, DevExpress.Xamarin.Android.Editors.TextEdit>
EditorsHandler<TextEdit, DevExpress.Xamarin.Android.Editors.TextEdit>
TextEditHandler
See Also