unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.88k stars 717 forks source link

Docs on using Uno and Prism #4121

Open sasakrsmanovic opened 4 years ago

sasakrsmanovic commented 4 years ago

Tutorials and sample apps for using Prism MVVM framework

Ameenrehman commented 4 years ago

hello @sasakrsmanovic i want to work on this, can you provide more info

davidjohnoliver commented 3 years ago

Note to contributors: the UnoContoso sample is a good example of an Uno app built with Prism: https://github.com/unoplatform/Uno.Samples/tree/master/UI/UnoContoso

GitHub
unoplatform/Uno.Samples
A collection of code samples for the Uno Platform. Contribute to unoplatform/Uno.Samples development by creating an account on GitHub.
sigmarsson commented 3 years ago

Thanks for the sample @davidjohnoliver . Is there a way to incorporate Prism in the Project Reunion head as well ? This is currently requiring Uno.UI, which must not be used together with *WinUI namespace. Shall I wait for a further prospective Uno version to achieve this ?

jeromelaban commented 3 years ago

@sigmarsson Prism just got WinUI/Reunion support merged, but packages are not yet available publicly from the Prism team. We'll add support for that when it becomes available publicly.

sigmarsson commented 3 years ago

@jeromelaban, so cool! Thank you.

sigmarsson commented 3 years ago

@jeromelaban

  1. When do you expect the release for the Win UI "flavor" of those Nugets ?
  2. Currently I forged a set of IoC bindings as NInject Modules. Do you think I will be able to inject that entire module in the prospective Prism IoC config - like AddModule() - or it will fusion with DryIoC/Unity only ?
jeromelaban commented 3 years ago

@sigmarsson the nuget packages supporting WinUI have been released in Prism 8.1. As for the NInject question, this would be best to be posted on the prism repo.

sigmarsson commented 3 years ago

@davidjohnoliver, thanks for the UnoContoso sample app. Why don't we need to instantiate and activate the main window in your application? Your shell is a ContentControl, please explain how it will become a Window. Merci.

davidjohnoliver commented 3 years ago

That one was all @kaki104's work :) I'm not closely familiar with the Contoso app or with Prism in general, maybe the Prism documentation will help you.