void Overlay_ManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e) { // reset the inital with of the Rect _x = (float)this.ImagePanel2.ActualWidth; }