Closed HubertBieder closed 9 months ago
Not sure why the Microsoft.AspNetCore.WebUtilities
package is in the sample app. I've removed the reference and the sample compiles and runs without any issues. The Blazing.MVVM
package has no dependencies for that package. I will push a fix to remove the reference in the sample app.
In the sample app, I needed to show MVVM working in the MainLayoutViewModel
. So the LocationChanged
event is only there for triggering an INotifyPropertyChanged
event. It's not a compulsory requirement.
Problem sits in Front of the Computer. I solved it. i was not able to resolve the "LocationChanged " so I don't use it and it works. I now use the Blazing Assembly and use it.
Glad it is sorted. FWIW, LocationChanged
is a NavigationManager
event that is fired when you navigate within a Blazor app. NavigationManager
is part of Blazor.
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 ?