TemplateStudio icon indicating copy to clipboard operation
TemplateStudio copied to clipboard

Prism.Avalonia Design Pattern Support

Open DamianSuess opened this issue 2 years ago • 7 comments

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:

  • Linux
  • Windows
  • macOS

DamianSuess avatar Jun 27 '23 21:06 DamianSuess

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

DamianSuess avatar Jun 27 '23 21:06 DamianSuess

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

chenzanyu avatar Jul 06 '23 10:07 chenzanyu

Highly recommended

Coolkeke avatar Sep 18 '23 07:09 Coolkeke

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

DamianSuess avatar Sep 22 '23 23:09 DamianSuess

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

carlosxjose avatar Jan 08 '24 02:01 carlosxjose

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 avatar Jan 08 '24 03:01 DamianSuess

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

DamianSuess avatar Aug 27 '24 17:08 DamianSuess