[Enhancement] Blazor in MAUI Preference #179
Replies: 1 comment
-
Seem like a santa claus list.
Not sure what you means by that. Can you explain this part ?
The real problem is that not everythinks is bindable. Otherwise you wouldn't have to make Behavior.
it's the main goal of MVC/MVP/PM/MVVM/MVU. Ensuring standard and uncouple way for the "vue" to talk with rest of the application. That what MVC bring. MVVM offer decoupling between Mode, View and Viewmodel themself by using DuckTyping (Data Transfert Object ex: Model, ViewModel), Event (Simple object related message ex: INotifyPropertyChanged, INotifyCollectionChanged) and messageBus (Complex message or related to global context between view and viewmodel ex: Open dialog, Toaster) to communicate between the three.
In a nutshell you want https://github.com/xamarin/MobileBlazorBindings |
Beta Was this translation helpful? Give feedback.
-
Summary
I want to share my preference about using Blazor in MAUI,
be able to easy Bind events to Methods and passing whatever number of parameters as we do in Blazor, without the need for behaviors (XAML way for handling it)
be able to sperate the logic and design as in Blazor's components
be able to register pages for navigation with directives like
@page
be able to access instances from Dependency Container by [Inject] Attribute like in Blazor
be able to access any object in my "Code-behind" not like in XAML when defining a DataTemplate i can only bind to itemsource's item object, for example if i want to bind to a command, i want it to be more straightforward.
All the listed above are just examples for what i really want to see in MAUI, there still more to mention but they are the core features that will make it more elegant to use Blazor as an option for Web-Developers who used to work with Blazor
Beta Was this translation helpful? Give feedback.
All reactions