프로그램 시작하기 전에 보여주는 이미지(로고) 등을 표시해주는 방법입니다.
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)); //천천히 닫히기
}
}
}
'WPF' 카테고리의 다른 글
쿠키사용법 (0) | 2009.12.15 |
---|---|
웹 페이지에 Silverlight 추가 (0) | 2009.12.15 |
간단하게 세션처럼 사용하기?! (0) | 2009.12.15 |
WCF 웹서비스를 이용한 데이터 바인딩 (0) | 2009.12.15 |
ResizeGrip - Resizing (Mostly Custom) Windows (0) | 2009.12.15 |
초간단 실버라이트 웹서비스 사용하기 (0) | 2009.06.30 |
컨테이너(Container) (0) | 2009.06.03 |
모듈화 (0) | 2009.06.03 |
XML , RSS 기사받아오기 및 웹서비스로 다시 보내주기 (0) | 2009.05.29 |
실버라이트 초간단 ADO.NET Entity Data Model 만들기 (0) | 2009.05.29 |