sentry-dotnet icon indicating copy to clipboard operation
sentry-dotnet copied to clipboard

Make `MauiCommunityToolkitMvvmEventsBinder` extensible to other elements

Open albyrock87 opened this issue 5 months ago • 2 comments

Problem Statement

Nowadays lots of developers are using third party libraries components which have their own Command properties which can use the MVVM command objects.

AddCommunityToolkitIntegration should provide a way to attach to those additional properties.

Solution Brainstorm

options.AddCommunityToolkitIntegration(integration => {
    integration.AddCommandSupport<MyThirdPartyElement>(
        MyThirdPartyElement.RefreshCommandProperty,
        MyThirdPartyElement.ValidateCommandProperty
    )
});

Internally this is stored as Dictionary<Type, BindableProperty[]> which we can leverage in the event binder.

albyrock87 avatar Jun 04 '25 16:06 albyrock87