Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / desktop / WPF

Calcium SDK: Replace IShell Implementation

4.33/5 (3 votes)
19 Feb 2010CPOL 10K  
When using the Calcium SDK[^]to replace the shell implementation entirely with your own implementation, use:void Application_Startup(object sender, StartupEventArgs e){ var container = new UnityContainer(); ServiceLocatorSingleton.Instance.InitializeServiceLocator(container); ...
When using the Calcium SDK[^]
to replace the shell implementation entirely with your own implementation, use:

void Application_Startup(object sender, StartupEventArgs e)
{
  var container = new UnityContainer();
  ServiceLocatorSingleton.Instance.InitializeServiceLocator(container);
  var shell = new YourCustomShell();
  container.RegisterInstance<IShell>(shell);
}


Or in VB:

Sub Application_Startup(sender As Object, e As StartupEventArgs)
	Dim container As var = New UnityContainer()
	ServiceLocatorSingleton.Instance.InitializeServiceLocator(container)
	Dim shell As var = New RonsShell()
	container.RegisterInstance(Of IShell)(shell)
End Sub

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)