How to display a splash screen using Caliburn Micro

I'm using Caliburn Micro v1.3 with WPF. I would like to display a splash screen while my app loads.

I have overriden OnStartup as below but can't see how to close my splash when the base.OnStartup complete

    protected override void OnStartup(object sender, System.Windows.StartupEventArgs e)
    {
        var wm = new WindowManager();
        var vm = new StatusReporterViewModel("TEST", "information", null);

        try
        {
            wm.ShowWindow(vm);

            base.OnStartup(sender, e);

        }
        finally            
        {
            vm.TryClose();
        }

    }

Any ideas?

Cheers

Steve

Answers


If you want to use the default WPF splash mechanism then it requires no code.

Add an image file to your WPF .EXE project and then set the properties on the image to "SplashScreen"


Need Your Help

Python, finding more than one index in a list of letters

python loops indexing

So I'm just beginning learning python and am creating a hangman game for a project. I am stuck.let me give you some background.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.