Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WPF - Prism -WTF
Message
From
26/10/2009 13:59:44
 
 
To
All
General information
Forum:
ASP.NET
Category:
Windows Presentation Foundation (WPF)
Title:
WPF - Prism -WTF
Environment versions
Environment:
C# 3.0
Miscellaneous
Thread ID:
01431546
Message ID:
01431546
Views:
113
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
Next
Reply
Map
View

Click here to load this message in the networking platform