Dreamescaper / BlazorBindings.Maui

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

Use object as rendered element instead of BindableObject #137

Closed Dreamescaper closed 1 year ago

Dreamescaper commented 1 year ago

Having a strongly typed ElementManager causes more harm than good. Not all Maui elements, which could be used in a markup, inherit BindableObject. In some cases it allows to use Blazor components for non-Maui elements (maybe ObservableCollection?). And it actually makes the code cleaner, as we cast BindableObject to the required type anyway in most cases.