Select splash screen resource on application sturtup

Stanislav Kholodov 1 Reputation point
2021-08-26T14:55:45.723+00:00

It is possible to set image build action as SplashScreen, however what if I need select splashcreen resource base on some condition, for example registry value. Is it possible to achieve?

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,799 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,117 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
821 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Karen Payne MVP 35,461 Reputation points
    2021-08-26T15:14:05.63+00:00

    Sure you can, there are plenty of resources on the web e.g. set dynamic image, loading a splash screen.

    Comments

    • In some cases what you find on the web may need tweaks dependent on version of WPF/Visual Studio you are working with
    • I would steer away from the registry unless this is for you alone as many users and organizations will reject reads to the registry no matter what code you write as code does not circumvent AD policies.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.