CommunityToolkit / MVVM-Samples

Sample repo for MVVM package
Other
1.11k stars 222 forks source link

Add Blazor Sample #104

Open Jordantmcfar opened 1 year ago

Jordantmcfar commented 1 year ago

Can we please get a sample implementation within Blazor?

adamskt commented 1 year ago

I'm giving a talk on this today 😅 Here is the repo where I have some simple examples based on the basic Blazor WASM (with an app host) dotnet new blazorwasm template: https://github.com/IntelliTect-Samples/blazor-mvvm

gragra33 commented 1 year ago

I have created a lib that expands on @adamskt code that includes a MvvmNavigationManager and a MvvmNavLink component that removes the use of magic strings using navigation by ViewModel (class/interface). Here is the repo and Nuget. Sample project included.