프로그램 시작하기 전에 보여주는 이미지(로고) 등을 표시해주는 방법입니다.

using System.Windows;
using System.Threading;
using System;

namespace HDI_WPF_SplashScreen_cs
{
/// <summary>
/// Interaction logic for Window1.xaml
/// </summary>
public partial class Window1 : Window
{
  public Window1()
  {
   InitializeComponent();
  }

  private void btnDemo_Click(object sender, RoutedEventArgs e)
  {
   SplashScreen sp = new SplashScreen("splash.jpg"); //표시해줄 이미지
   sp.Show(false);
   Thread.Sleep(3000);
   sp.Close(new TimeSpan(0, 0, 3)); //천천히 닫히기
  }
}
}

+ Recent posts