Dreamescaper / BlazorBindings.Maui

MAUI Blazor Bindings - Build native and hybrid MAUI apps with Blazor
MIT License
253 stars 23 forks source link

Update NativeControlComponentBase to implement IComponent directly #84

Closed Dreamescaper closed 1 year ago

Dreamescaper commented 1 year ago

ComponentBase defines a lot of things which are not really applicable for native components, but makes them a bit slower (e.g. due to reflection in SetParametersAsync), and make some things harder (e.g. does not allow to define new parameters).

It makes sense to implement IComponent directly, leaving only the required bare minimum.