Share via

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?

Developer technologies | Windows Presentation Foundation
Developer technologies | XAML
Developer technologies | 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.

Developer technologies | C#
Developer technologies | 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.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Karen Payne MVP 35,606 Reputation points Volunteer Moderator
    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.

    Was this answer helpful?

    0 comments No comments

Your answer

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