Remove the WinAPI+WinRT support code (too limited to be useful) and implement a timer based on DispatcherTimer.