Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF SplashScreen implementing

I try to implement Splash Screnn in WPF. I have found some nice ehample in MSDN, but there is one place:

private void _applicationInitialize(SplashScreen splashWindow)
{

    Thread.Sleep(1000);

    // Create the main window, but on the UI thread.

    Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Invoker)delegate
    {

        Window1 MainWindow = new Window1();

        Helper.setWin(MainWindow);

        MainWindow.Show();

    });

}

The problem is Helper, whats the class is there and how it must be implemented. Someone could paste an example or smth?

like image 897
Vytas Avatar asked Nov 16 '09 12:11

Vytas


1 Answers

There is an even easier way:

http://msdn.microsoft.com/en-us/library/cc656886.aspx

  1. Add the image file to the WPF Application project. For more information, see How to: Add Existing Items to a Project.
  2. In Solution Explorer, select the image.
  3. In the Properties window, click the drop-down arrow for the Build Action property.
  4. Select SplashScreen from the drop-down list
like image 149
Guy Avatar answered Sep 28 '22 19:09

Guy