AvaloniaUI / TemplateStudio

Template Studio accelerates the creation of new Avalonia UI apps using a wizard-based experience.
Other
38 stars 7 forks source link

Prism.Avalonia Design Pattern Support #10

Open DamianSuess opened 1 year ago

DamianSuess commented 1 year ago

Is your feature request related to a problem? Please describe.

I would like to create an application that supports Prism.Avalonia

Describe the solution you'd like

When creating a new application, I would like to be able to create one which uses Prism.Avalonia's framework for the MVVM design pattern.

Describe alternatives you've considered

I've used ReactiveUI in the past, however, I prefer to use the Prism library toolset which comes with Prism.Avalonia such as its Region Manager and Journaling for page navigation, Modules, DialogService and etc.

Additional context

Applies to platforms:

DamianSuess commented 1 year ago

I was working on an extension to support this, however, I rather support the Avalonia ecosystem under one hood

chenzanyu commented 1 year ago

As a WPF developer, I am more familiar with Prism and would like to support Prism templates

Coolkeke commented 12 months ago

Highly recommended

DamianSuess commented 12 months ago

Gonna give this a shot in my spare time and create a PR. If this is an unwanted feature, let me know sooner versus later

https://github.com/DamianSuess/TemplateStudio/tree/feature/PrismAvaloniaSupport

I am having an issue building even just main branch. Which configuration should I use for building/testing? There isn't one for Avalonia created, just WinUI, WPF, ALL. Even, when I choose, ALL it erases TemplateSutdioForWPF and causes builds to fail.

To get started, I tried following the CONTRIBUTING.md file but there are some gaps. To get it building, I did have to disable all Test projects (is this correct?). Perhaps in another PR, I can assist with updating the documentation and adding a .slnf specifically for Avalonia.

Any assistance/pointers would be appreciated.

Severity    Code    Description Project File    Line    Suppression State

Error   CS0535  'TestGenShellProject' does not implement interface member 'IGenShellProject.IsActiveProjectAvalonia()'  SharedFunctionality.Core.Tests  C:\work\xi\TemplateStudio\code\test\SharedFunctionality.Core.Tests\TestFakes\GenShell\TestGenShellProject.cs    10  Active

Error   CS1029  #error: 'Invalid configuration selected. You cannot use "Debug" or "Release", choose something else.'   SharedResources C:\work\xi\TemplateStudio\code\SharedResources\TemplateStudioProject.cs 22  Active
carlosxjose commented 8 months ago

I am wondering if the Prism design PR of DamienSuess it's going to be merge and release....

I wish you could get this possible... Thanks

DamianSuess commented 8 months ago

Yes, @carlosxjose, I'm still seeking assistance in building this project. I will admit, I haven't had much time lately to commit to figuring out what wizardry needs to happen. Hopefully some time can be cleared up in the next few weeks.

DamianSuess commented 2 weeks ago

I created a template pack for Prism.Avalonia which has been published to NuGet.org. Any chance this could be integrated into here?