private void InertialMotion_Completed(object sender, EventArgs e)
{
// Save current window position reading it from the TranslateTransform object
Position = GetCurrentWindowPosition();
// Stop the animation affecting its target property
inertialMotionStoryboard.Remove(contentRoot as FrameworkElement);
windowAction = WindowAction.None;
}