---
title: "WPF window reports old left property after DragMove"  
description: "WPF window reports old left property after DragMove"  
author: "Anonymous User"  
published: 2014-08-19  
updated: 2014-08-19  
canonical: https://www.mindstick.com/forum/2056/wpf-window-reports-old-left-property-after-dragmove  
category: "wpf"  
tags: ["wpf"]  
reading_time: 1 minute  

---

# WPF window reports old left property after DragMove

I have this issue, after calling DragMove(), the [window](https://www.mindstick.com/forum/161285/how-does-the-window-console-object-work-in-javascript) [reports](https://www.mindstick.com/blog/11576/magento-reports-extension) its old [Left](https://www.mindstick.com/articles/12768/don-t-be-left-behind-with-the-new-it-revolution) [property](https://www.mindstick.com/blog/205/property-notification-in-c-sharp) as if DragMove did not change it at all.

so lets say the window's left is currently 100 pixels, i move the window using DragMove():

[private](https://www.mindstick.com/blog/11097/java-access-modifiers-the-public-and-the-private-modifiers) void Window_MouseDown(object sender, MouseButtonEventArgs e)

{

if (e.LeftButton == MouseButtonState.Pressed)

{

DragMove();

}

}

after which i [click](https://www.mindstick.com/articles/12423/social-login-magento-2-one-click-to-register-social) a [button](https://www.mindstick.com/articles/63/how-to-add-button-in-datagridview-in-csharp-dot-net) an show the new Left position of the window:

private void SomeButton_Click(object sender, RoutedEventArgs e)

{

MessageBox.Show(Left.ToString());

}

however, the [Message](https://www.mindstick.com/forum/12802/show-confirmation-message-yes-or-no-in-asp-dot-net) box still [shows](https://yourviews.mindstick.com/view/81380/new-york-violent-shooting-shows-people-are-not-safe-in-night-life) '100' as if the window didnt move at all although it did...

what am i [missing](https://answers.mindstick.com/qa/52138/international-missing-children-s-day-2019-was-observed-on)?

## Replies

### Reply by Pravesh Singh

Hi Goti, try this:\

```
DoubleAnimation _leftAnimation = new DoubleAnimation();//...animation settings..._leftAnimation.Completed += delegate(object animSender,EventArgs animE){   
BeginAnimation(Window.LeftProperty, null);};this.BeginAnimation(LeftProperty, _leftAnimation);
```


---

Original Source: https://www.mindstick.com/forum/2056/wpf-window-reports-old-left-property-after-dragmove

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
