Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WPF - Prism -WTF
Message
From
28/10/2009 05:31:55
 
 
General information
Forum:
ASP.NET
Category:
Windows Presentation Foundation (WPF)
Environment versions
Environment:
C# 3.0
Miscellaneous
Thread ID:
01431546
Message ID:
01431837
Views:
46
>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

In case anyone is interested I got the answer to this via CodePlex:http://blogs.southworks.net/fantivero/
Previous
Reply
Map
View

Click here to load this message in the networking platform