WPF: Fixed all bugs with scrubbing in TrackBarControl. Other bug fixes related to loops in MainWindow.