Fixing Issue #257 WPF part where window.Y = window.Y would move window

This is only Wpf part of bug and not GTK.