Window closes when dragging and resizing

Apr 8, 2014 at 11:19 AM
The window closes when it is dragged or resized.
Replacing
sv.ShowDialog();
with
windowService.ShowDialog(sv);
will fix the issue.