Files
Dan Siegel aac688c354 Refactor Uno E2E sample to single-project app model
Migrates the Uno Platform E2E sample application from a multi-project
structure to the recommended single-project architecture.

This update consolidates platform-specific heads into the main
`HelloWorld` project and introduces a new `Playground.Module` to
showcase Prism for Uno.WinUI features like regions, dialogs, and modularity
within the streamlined project setup. It also updates the target framework to .NET 10.
2026-05-14 08:46:23 -06:00

28 lines
1.2 KiB
C#

using Playground.Module.Dialogs;
using Playground.Module.ViewModels;
using Playground.Module.Views;
namespace Playground.Module;
public class PlaygroundModule : IModule
{
public void RegisterTypes(IContainerRegistry containerRegistry)
{
containerRegistry.RegisterForNavigation<HomeView, HomeViewModel>();
containerRegistry.RegisterForNavigation<RegionLabView, RegionLabViewModel>();
containerRegistry.RegisterForNavigation<DialogLabView, DialogLabViewModel>();
containerRegistry.RegisterForNavigation<ModuleAboutView, ModuleAboutViewModel>();
containerRegistry.RegisterForNavigation<RegionDetailAlphaView, RegionDetailAlphaViewModel>();
containerRegistry.RegisterForNavigation<RegionDetailBetaView, RegionDetailBetaViewModel>();
containerRegistry.RegisterDialog<NotificationDialog, NotificationDialogViewModel>();
containerRegistry.RegisterDialog<ConfirmDialog, ConfirmDialogViewModel>();
}
public void OnInitialized(IContainerProvider containerProvider)
{
var regionManager = containerProvider.Resolve<IRegionManager>();
regionManager.RequestNavigate("ContentRegion", "HomeView");
}
}