Click here to Skip to main content
15,881,593 members
Articles / Desktop Programming / WPF
Tip/Trick

Calcium SDK: Replace IShell Implementation

Rate me:
Please Sign up or sign in to vote.
4.33/5 (3 votes)
19 Feb 2010CPOL 9.9K   2  
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)


Written By
Engineer
Switzerland Switzerland
Daniel is a former senior engineer in Technology and Research at the Office of the CTO at Microsoft, working on next generation systems.

Previously Daniel was a nine-time Microsoft MVP and co-founder of Outcoder, a Swiss software and consulting company.

Daniel is the author of Windows Phone 8 Unleashed and Windows Phone 7.5 Unleashed, both published by SAMS.

Daniel is the developer behind several acclaimed mobile apps including Surfy Browser for Android and Windows Phone. Daniel is the creator of a number of popular open-source projects, most notably Codon.

Would you like Daniel to bring value to your organisation? Please contact

Blog | Twitter


Xamarin Experts
Windows 10 Experts

Comments and Discussions

 
-- There are no messages in this forum --