Archive for C#/WPF

Timer in WPF

To add a timer in .NET, you need to use the DispatchTimer class (example taken from http://stackoverflow.com/questions/5410430/wpf-timer-like-c-sharp-timer). The following is an example: