Skip to content

Instantly share code, notes, and snippets.

@shiftkey
Created November 10, 2011 00:23
Show Gist options
  • Save shiftkey/1353665 to your computer and use it in GitHub Desktop.
Save shiftkey/1353665 to your computer and use it in GitHub Desktop.
Registering the bootstrapper in a Silverlight Application
public App()
{
Startup += Application_Startup;
Exit += Application_Exit;
UnhandledException += Application_UnhandledException;
var bootstrapper = new AppBootstrapper();
Resources.Add("Bootstrapper", bootstrapper);
InitializeComponent();
}
private void Application_Startup(object sender, StartupEventArgs e)
{
// this.RootVisual = new MainPage();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment