.NET MAUI › Migration from Xamarin.Forms

How do you convert a Xamarin.Forms custom renderer to a MAUI handler?

Intermediate

Answer

Identify what the renderer customized, then move that logic to a handler mapper (AppendToMapping/ModifyMapping) or a custom handler if you added a new control. Most simple renderer tweaks become a few lines in a mapper, removing the renderer class and its ExportRenderer attribute entirely.
// Old: custom EntryRenderer removing the underline
// New: EntryHandler mapper
EntryHandler.Mapper.AppendToMapping("NoLine", (h, v) => { /* native tweak */ });
Real-world example A dozen small renderers collapse into a handful of mapper customizations, cutting platform code significantly.

Common follow-ups: Do all renderers map to handlers 1:1? | What replaces ExportRenderer?