Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8095925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:18:00+00:00 2026-06-05T21:18:00+00:00

I have a splash screen that I would like to fade in, while my

  • 0

I have a splash screen that I would like to fade in, while my application goes off and does something, then once complete, if a certain amount of time has elapsed, closes the splash screen and loads the main screen.

The issue Im getting is that while I am looping to check if the amount of time has elapsed, it does not seem to be processing my storyboard to fade in the splash screen.

After reading around I guess I should be starting the splash screen on a different thread?

Heres the code:

public partial class App : Application
    {
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            MySplashScreen splash = new MySplashScreen();
            splash.Show();
            Stopwatch sw = new Stopwatch();
            sw.Start();
            while (sw.Elapsed.TotalSeconds < 10)
            {
            }
            splash.Close();
            MainWindow mw = new MainWindow();
            mw.Show();

        }

    }

The issue is when I add the animation. Its like its not applying any processor to the fade because its stuck in the while loop.

<Window x:Class="Splash_Demo.MySplashScreen"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Height="550" Width="900" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" WindowStyle="None" ShowInTaskbar="False" Background="Transparent" AllowsTransparency="True" Opacity="0">
    <Window.Triggers>
        <EventTrigger RoutedEvent="Window.Loaded">
            <BeginStoryboard>
                <Storyboard>
                    <DoubleAnimation Duration="00:00:03" Storyboard.TargetProperty="Opacity" To="1" />
                </Storyboard>
            </BeginStoryboard>
        </EventTrigger>
    </Window.Triggers>
    <Canvas Height="498" Width="839">
        <Canvas.Background>
            <ImageBrush ImageSource="C:\Users\Ash\Downloads\XactSplash.png"/>
        </Canvas.Background>
        <Label Canvas.Left="291" FontFamily="Algerian" Canvas.Top="413" Name="Customer" Height="43" Width="185" HorizontalContentAlignment="Left" VerticalContentAlignment="Center"/>
        <Image Canvas.Left="500" Canvas.Top="165" Height="164" Name="image1" Stretch="Fill" Width="211" Source="C:\Users\Ash\Downloads\Zerix.bmp" />
        <Label Canvas.Left="191" Canvas.Top="376" FontSize="8" Content="Label" Height="19" Name="lblYear" Width="30" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" />
    </Canvas>

</Window>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T21:18:02+00:00Added an answer on June 5, 2026 at 9:18 pm

    You’re busy-waiting, causing the UI thread to block, and taking a lot of CPU in the process. Instead, set up a timer in your Application_Startup, and open the main window when it expires.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Like many people, I have a splash screen that animates off to reveal the
I have an Prism application that begins with a Splash screen, then needs to
I have a loading image that I would like to apply as a splash
I have a simple iPhone application that loads very quickly, so the splash screen
I want a splash screen to show while the application is loading. I have
I have a label on a splash screen that is displayed for 4 seconds.
I have an application with like 400 records in the database, I have splash
I have quite a 'heavy' python program that I would like compiled to an
I have a question that I have a splash screen in my android app
I'm trying to have a splash screen then move to a downloading screen the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.