Click here to Skip to main content
Click here to Skip to main content

Tagged as

Go to top

Calcium SDK: Replace IShell Implementation

, 19 Feb 2010
Rate this:
Please Sign up or sign in to vote.
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)

Share

About the Author

Daniel Vaughan
President Outcoder
Switzerland Switzerland
Daniel Vaughan is a Microsoft MVP and co-founder of Outcoder, a Swiss software and consulting company dedicated to creating best-of-breed user experiences and leading-edge back-end solutions, using the Microsoft stack of technologies--in particular WPF, WinRT, and Windows Phone.
 
Daniel is the author of Windows Phone 8 Unleashed and Windows Phone 7.5 Unleashed, both published by SAMS.
 
Daniel is also the creator of a number of open-source projects, including Calcium SDK, and Clog.
 
Would you like Daniel to bring value to your organisation? Please contact

Daniel's Blog | MVP profile | Follow on Twitter
 
Windows Phone Experts
Follow on   Twitter   Google+   LinkedIn

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 20 Feb 2010
Article Copyright 2010 by Daniel Vaughan
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid