DynamicSplashScreen is reusable class which can be used as base class
for your custom splash screen. Check inline comments for details.
public class DynamicSplashScreen:Window
{
public DynamicSplashScreen()
{
//Defaults for splash screen
this.ShowInTaskbar = false;
this.WindowStartupLocation = WindowStartupLocation.Manual;
this.ResizeMode = ResizeMode.NoResize;
this.WindowStyle = WindowStyle.None;
this.Topmost = true;
this.Loaded += OnLoaded;
}
private void OnLoaded(object sender, RoutedEventArgs e)
{
//calculate it manually since CenterScreen substracts
//taskbar's height from available area
this.Left = (SystemParameters.PrimaryScreenWidth - this.Width) / 2;
this.Top = (SystemParameters.PrimaryScreenHeight - this.Height) / 2;
}
}
refer this for more help
http://blog.m.jedynak.pl/2011/02/dynamic-splash-screen-in-wpf.html