Switch to dispatch timer

Dispatch timer is the WPF approved way to handle polling.