Prism (https://github.com/PrismLibrary/Prism) framework support for Avalonia UI.
This library actually copies functionality of Prism for WPF implementation, which can be found here: https://github.com/PrismLibrary/Prism/tree/master/Source/Wpf
Logic and approach for development of your applications remained the same as it was for Prism.Wpf library.
Add package from nuget to your project:
Install-Package Prism.Avalonia -Version 7.2.0.1422
Install-Package Prism.DryIoc.Avalonia -Version 7.2.0.1422
Install-Package Prism.Unity.Avalonia -Version 7.2.0.1422
Install-Package Prism.Autofac.Avalonia -Version 7.1.0.431
Also, I should say that because this port was made in a few days in a rush-mode without deep knowledge of Avalonia's internal mechanisms and because of differences in runtime platforms, not everything was ported, in addition of course you can confront with various bugs. I will use this port in my internalwork projects, so by developing applications I'll fix bugs or invalid behaviours which can occur on my path, but issues and pull requests are welcome too!
Not ported/supported features and other problems:
- Prism.Avalonia not supports ability to bind Region to ItemsSource/Selector element
- ViewInjection for regions will not work
- DirectoryCatalog implementation of ModuleCatalog
- Not all tests are reproducible because of runtime or avalonia capabilities
ModulesSample on Ubuntu 16.04 | ModulesSample on Windows 10 |
---|---|