Skip to content

Commit

Permalink
Handler disconnection (#2594)
Browse files Browse the repository at this point in the history
* Add xrefs.

* Fix xref.

* Add xrefs.

* Fix xrefs.

* Add handler disconnection.

* Edit.

* Add section on handler disconnection.

* Edits.

* Edit.
  • Loading branch information
davidbritch authored Oct 31, 2024
1 parent 0056256 commit 57e4c88
Show file tree
Hide file tree
Showing 5 changed files with 179 additions and 73 deletions.
4 changes: 2 additions & 2 deletions docs/migration/custom-renderers.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ public static class MauiProgram
}
```

The renderers are registered with the `ConfigureMauiHandlers` and `AddHandler` method. This first argument to the `AddHandler` method is the cross-platform control type, with the second argument being its renderer type.
The renderers are registered with the <xref:Microsoft.Maui.Hosting.HandlerMauiAppBuilderExtensions.ConfigureMauiHandlers%2A> and <xref:Microsoft.Maui.Hosting.MauiHandlersCollectionExtensions.AddHandler%2A> method. This first argument to the <xref:Microsoft.Maui.Hosting.MauiHandlersCollectionExtensions.AddHandler%2A> method is the cross-platform control type, with the second argument being its renderer type.

> [!IMPORTANT]
> Only renderers that derive from `FrameRenderer`, `ListViewRenderer`, `NavigationRenderer` on iOS, `ShellRenderer` on iOS and Android, `TabbedRenderer` on iOS, `TableViewRenderer`, and `VisualElementRenderer` can be registered with the `AddHandler` method.
> Only renderers that derive from `FrameRenderer`, `ListViewRenderer`, `NavigationRenderer` on iOS, `ShellRenderer` on iOS and Android, `TabbedRenderer` on iOS, `TableViewRenderer`, and `VisualElementRenderer` can be registered with the <xref:Microsoft.Maui.Hosting.MauiHandlersCollectionExtensions.AddHandler%2A> method.
### Consume the custom renderers

Expand Down
Loading

0 comments on commit 57e4c88

Please sign in to comment.