by Jeremy Foster
30. March 2012 10:16
Ready for the shortest blog post in history?
Looking for a time in Windows 8? Look no further. Just drop this code into the App constructor on the App.xaml.cs page…
var d = new DispatcherTimer();
d.Start();
d.Tick += (sender, o) => { Debug.WriteLine("tick"); };
Now go take a look at Visual Studio’s Output pane and watch it tick.
37ec1042-65c3-4c17-8f64-66f82cfe9ca9|2|5.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04
Tags:
Windows 8