4

I'm using the SplashScreen functionality in my WPF app (e.g. 400x200px PNG file). On screens with standard DPI, SplashScreen is displayed correctly, but on Retina displays or other High-DPI screens it looks very small. It is possible to provide more PNG resources (with different sizes) and choose one based on screen DPI?

My current implememntation (in App.xaml.cs):

    protected override void OnStartup(StartupEventArgs e)
    {
        SplashScreen splash = new SplashScreen("Resources/Images/splash-screen.png");
        splash.Show(true, true);

        base.OnStartup(e);
    }
4

0 に答える 0