protected override DependencyObject CreateShell() { Shell shell = Container.Resolve<Shell>(); #if SILVERLIGHT Application.Current.RootVisual = shell; #else shell.Show(); #endif return shell; }