-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Request] Allow self-registration of handlers, etc. #7258
Copy link
Copy link
Open
Labels
area-controls-generalGeneral issues that span multiple controls, or common base classes such as View or ElementGeneral issues that span multiple controls, or common base classes such as View or ElementpartnerIssue or Request from a partner teamIssue or Request from a partner teamproposal/opent/enhancement ☀️New feature or requestNew feature or request
Milestone
Metadata
Metadata
Assignees
Labels
area-controls-generalGeneral issues that span multiple controls, or common base classes such as View or ElementGeneral issues that span multiple controls, or common base classes such as View or ElementpartnerIssue or Request from a partner teamIssue or Request from a partner teamproposal/opent/enhancement ☀️New feature or requestNew feature or request
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
Imagine a library with a big amount of handlers, effects, etc.
UseLibrary()extension method, but there are huge consequences for using such an approach. The problem is as follows - in the UseLibrary() method, we need to register everything - all handlers, renderers, effects, everything. Now the linker will not be able to strip away unused code - even if the client-dev uses only a couple of our controls.Public API Changes
We have to analyze possibilities to allow this.
Intended Use-Case
MauiApp.Current.TryAddHandler(Component1, Component1Handler)