MVVM-Samples icon indicating copy to clipboard operation
MVVM-Samples copied to clipboard

Other Samples?

Open michael-hawker opened this issue 4 years ago • 9 comments

Does it make sense to have additional samples?

  • [ ] Avolonia
  • [ ] Blazor
  • [ ] WinForms?

If so, we can create additional issues for these.

Any other suggestions?

michael-hawker avatar Jul 21 '20 16:07 michael-hawker

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.

jamesmcroft avatar Aug 30 '20 19:08 jamesmcroft

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.

SimonGeering avatar Aug 31 '20 16:08 SimonGeering

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 😄.

TheVeryStarlk avatar Dec 11 '21 00:12 TheVeryStarlk

WinForms please?

ycc3000 avatar Dec 16 '21 08:12 ycc3000

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.

michael-hawker avatar Dec 16 '21 18:12 michael-hawker

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

ycc3000 avatar Dec 17 '21 01:12 ycc3000

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 ?

Smurf-IV avatar Jul 15 '22 08:07 Smurf-IV

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 avatar May 10 '23 20:05 gragra33

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.

gragra33 avatar May 20 '23 11:05 gragra33