CommunityToolkit / MVVM-Samples

Sample repo for MVVM package
Other
1.15k stars 224 forks source link

Other Samples? #8

Open michael-hawker opened 4 years ago

michael-hawker commented 4 years ago

Does it make sense to have additional samples?

If so, we can create additional issues for these.

Any other suggestions?

jamesmcroft commented 4 years ago

What are thoughts on Xamarin native? I know that a lot of enterprise apps that didn't commit to Xamarin Forms early due to it's learning curve/lack of good UX, many developers built the iOS and Android apps separately using shared common code.

The MvvmLight toolkit provided the framework for building out the platform bindings which I know haven't been included here for the platform-agnostic reasons. It would be good to include these samples so that those developers don't feel left out and need to look for an alternative replacement to the MVVM Toolkit for their scenarios.

SimonGeering commented 4 years ago

If it helps anyone in the meantime I have a sample app using this for Blazor here. https://github.com/SimonGeering/AdminAssistant/tree/dev Please note that it is very early in development at the time of writing this.

TheVeryStarlk commented 2 years ago

I was playing around with Avalonia and thought of using the MVVM community toolkit, so I created a demo project that has a text box with some input validation attached to it, and it worked perfectly fine! 🚀 . I posted that in the C# Discord server and XAML Llama asked me if I can contribute to this repository by creating an Avalonia sample 😄.

ycc3000 commented 2 years ago

WinForms please?

michael-hawker commented 2 years ago

WinForms please?

@ycc3000 are you using the MVVM pattern in WinForms? Do you have an example? Typically MVVM is only used with XAML based platforms. Though the Messenger class in the MVVM Toolkit is super performant and easy-to-use, and can be used anywhere still. We have docs for that here.

ycc3000 commented 2 years ago

@michael-hawker dear, I don't have any examples, we are developing using WinForm, I want to learn how to use MVVM on WinForm.

Smurf-IV commented 2 years ago

Though the Messenger class in the MVVM Toolkit is super performant and easy-to-use, and can be used anywhere still.

Would be nice to have Winform similar to MVP style but with proper "async / threading updates" example(s) please ?

gragra33 commented 1 year ago

I have created a lib that enables MVVM using the Toolkit in Blazor that includes a MvvmNavigationManager and a MvvmNavLink component that removes magic strings using navigation by ViewModel (class/interface). Here is the repo and Nuget. Sample project included.

gragra33 commented 1 year ago

I have posted a repo that is a conversion of the Xamarin Sample and, with minimal changes, made it work for Blazor WASM.

I hope that someone finds this useful.