Dreamescaper / BlazorBindings.Maui

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

Rework approach with handlers #36

Closed Dreamescaper closed 2 years ago

Dreamescaper commented 2 years ago

Our current approach with elements and handlers is not the easiest one. We set properties to control component, which renders all of them to render tree. Renderer picks up corresponding handler, which handles parameters, and sets them to Maui control type.

I suggest to merge those types together. Set parameters to Maui control type directly in component's SetParametersAsync method. We still need to render RenderFragment properties to the RenderTree (e.g. ChildContent).