C# Class ModularityWithNinject.Desktop.QuickStartBootstrapper

Initializes Prism to start this quickstart Prism application to use Ninject.
Inheritance: Prism.Ninject.NinjectBootstrapper
Mostrar archivo Open project: PrismLibrary/Prism-Samples-Wpf Class Usage Examples

Protected Methods

Method Description
ConfigureKernel ( ) : void

Configures the Prism.Ninject. May be overwritten in a derived class to add specific type mappings required by the application.

ConfigureModuleCatalog ( ) : void
CreateLogger ( ) : ILoggerFacade

Create the ILoggerFacade used by the bootstrapper.

The base implementation returns a new TextLogger.

CreateModuleCatalog ( ) : IModuleCatalog

Returns the module catalog that will be used to initialize the modules.

When using the default initialization behavior, this method must be overwritten by a derived class.

CreateShell ( ) : DependencyObject

Creates the shell or main window of the application.

If the returned instance is a DependencyObject, the will attach the default Prism.Regions.IRegionManager of the application in its Prism.Regions.RegionManager.RegionManagerProperty attached property in order to be able to add regions by using the Prism.Regions.RegionManager.RegionNameProperty attached property from XAML.

InitializeShell ( ) : void

Initializes the shell.

The base implemention ensures the shell is composed in the container.

Method Details

ConfigureKernel() protected method

Configures the Prism.Ninject. May be overwritten in a derived class to add specific type mappings required by the application.
protected ConfigureKernel ( ) : void
return void

ConfigureModuleCatalog() protected method

protected ConfigureModuleCatalog ( ) : void
return void

CreateLogger() protected method

Create the ILoggerFacade used by the bootstrapper.
The base implementation returns a new TextLogger.
protected CreateLogger ( ) : ILoggerFacade
return ILoggerFacade

CreateModuleCatalog() protected method

Returns the module catalog that will be used to initialize the modules.
When using the default initialization behavior, this method must be overwritten by a derived class.
protected CreateModuleCatalog ( ) : IModuleCatalog
return IModuleCatalog

CreateShell() protected method

Creates the shell or main window of the application.
If the returned instance is a DependencyObject, the will attach the default Prism.Regions.IRegionManager of the application in its Prism.Regions.RegionManager.RegionManagerProperty attached property in order to be able to add regions by using the Prism.Regions.RegionManager.RegionNameProperty attached property from XAML.
protected CreateShell ( ) : DependencyObject
return System.Windows.DependencyObject

InitializeShell() protected method

Initializes the shell.
The base implemention ensures the shell is composed in the container.
protected InitializeShell ( ) : void
return void