Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WPF - Prism -WTF
Message
De
26/10/2009 13:59:44
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Titre:
WPF - Prism -WTF
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01431546
Message ID:
01431546
Vues:
114
Hi,

I'm workingf on a WPF application using the MS CAL (Prism) library. Here's the Application.StartUp override:
public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            LoginWindow l = new LoginWindow();
            Nullable<bool> dialogResult = l.ShowDialog();

            base.OnStartup(e);

            BootStrapper bootStrapper = new BootStrapper();
            bootStrapper.Run();

        }
*Without* the LoginWindow dialog the BootStrapper (the usual - based on UnityBootStrapper) fires up fine. With the LoginWindow code in place it goes through the same process without error but when the Application.OnStartup exits the whole app exits. If I place the LoginWindow code *after* the bootStrapper.Run() line everything works fine (but I don't want to have the Shell displayed before the log in stuff has completed).
Any suggestions as to why the difference in behaviour?
TIA,
Viv
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform