Dispatcher
-
[WPF] Timer ( DispatcherTimer )Microsoft .NET/WPF 2019. 7. 3. 13:02
Timer를 생성하고 1초 주기로 출력창에 시간을 출력하는 예제입니다. using System; using System.Windows; namespace WPF_EXAMPLE_Timer_DispatcherTimer_ { /// /// MainWindow.xaml에 대한 상호 작용 논리 /// public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); #region Timer System.Windows.Threading.DispatcherTimer timer = new System.Windows.Threading.DispatcherTimer(); //호출 함수 설정 timer.Tick += timer_Tick..