This project is read-only.
!How to add a module to Central?

Add the following Post-build event command to the project containing the new module

xcopy /y "$(TargetPath)" "$(SolutionDir)Central\$(OutDir)Modules\"

Add "Central" NuGet Package

Create module class.

Eg
[ModuleExport(typeof(ExampleModule), InitializationMode = InitializationMode.WhenAvailable)]
[Module(ModuleName = "ExampleModule", OnDemand = true)]
public class ExampleModule : IModule
{
[Import]
public IRegionManager RegionManager { private get; set; }

public void Initialize()
{
}
}

Create Views, that in this case it will be WPF User Controls

Add the views into specific regions inside of the method Initialize() from the Module class. Eg.

public void Initialize()
{
RegionManager.RegisterViewWithRegion(RegionNames.ToolBarRegion, typeof(ExampleToolbar));

RegionManager.RegisterViewWithRegion(RegionNames.ToolsMenuRegion, typeof(ExampleToolsMenu));
RegionManager.RegisterViewWithRegion(RegionNames.MainMenuRegion, typeof(ExampleMainMenu));
}

Regions

  • Tool Bar
  • Notification Bar
  • Avalon Document
  • Avalon Tool
  • "Tools " Menu
  • Main Menu

regions.png

Last edited Oct 4, 2012 at 4:40 PM by alfredop13, version 4

Comments

alfredop13 Oct 12, 2012 at 2:31 PM 
Try the "central application example" added to the downloads page. As for now, it only contains two modules.

Farre82 Oct 10, 2012 at 6:32 AM 
Hey, great framework but it would be nice to see and download a complete example of the prism integration maybe the example above.

Thanks