DevExpressWasmMasksApplicationBuilderExtensions Class
Contains extension methods that register the DevExpress middleware for client-side masks in Blazor Server applications.
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: DevExpress.Blazor.Server.WebAssembly.v22.2.dll
NuGet Package: DevExpress.Blazor.Server.WebAssembly
Declaration
public static class DevExpressWasmMasksApplicationBuilderExtensions
Remarks
Use this class’s UseDevExpressBlazorWasmMasksStaticFiles method to enable client-side (WebAssembly) masks in your Blazor Server application. In this mode, data editors with masks process input text on the client to reduce input delays when you have a slow connection.
To activate this functionality, follow the steps below:
- Install the
DevExpress.Blazor.Server.WebAssembly
NuGet Package. Register the middleware. Call the UseDevExpressBlazorWasmMasksStaticFiles method in the
Program.cs
file:app.UseDevExpressBlazorWasmMasksStaticFiles();
Set up mask-related options. Call the AddDevExpressBlazorWasmMasks method in the
Program.cs
file:builder.Services.AddDevExpressBlazorWasmMasks();