this.PreviewMouseUp -= this.OnUp; this.PreviewMouseDown -= this.OnDown; private void OnUp(object sender, MouseButtonEventArgs e) { Debug.WriteLine("up