gragra33 / blazing.mvvm Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi, great job!
Because The ViewModelBase is an ObservableObject and not a ValidationObject I can't validate my ViewModel properties.
I Try to Use the MainLayoutViewModel in my Application.
Your Sample works well.
But my App did not work. So I try to Code your MainLayoutViewModel in my App.
I Used the actual NUGedtPackage Blazing.MVVM and have no Package
Microsoft.ASPNetCore.WebUtilities becaus it is depracted.
In Your Code there are
_navigationManager.LocationChanged += OnLocationChanged;
the Event .LocationChanged is not found by my APP.
When I delete the LocationChanged zhen my APP has Errors.
Do you have any Idea ?
We are trying to use Blazing.Mvvm on Blazor Server. When registering the service with builder.Services.AddMvvmNavigation(); it throws an exception during build because the AspNetCore.Components.NavigationManager is registered as Scoped instead of a Singleton. Of course we could manually register the MvvmNavigation as Scoped, but what impact would this have? Not sure if your MvvmNavigationManager would operate properly if Scoped.
Getting the following error:
System.AggregateException: 'Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: Blazing.Mvvm.Components.IMvvmNavigationManager Lifetime: Singleton ImplementationType: Blazing.Mvvm.Components.MvvmNavigationManager': Cannot consume scoped service 'Microsoft.AspNetCore.Components.NavigationManager' from singleton 'Blazing.Mvvm.Components.IMvvmNavigationManager'.)'
Information on how the Default Services are registered:
https://learn.microsoft.com/en-us/aspnet/core/blazor/fundamentals/dependency-injection?view=aspnetcore-7.0
Can I get a MVVM Support for this Razor File ?
If not I have here a break ikn dthe MVVM Logic
Hey, great project you have here. I was looking at doing something similar with source generators and the community toolkit but I see you have already started the work here.
If you are open to collaboration, it would be great to add to and grow this project.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.