private void Window_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { if (VolumeControl.IsMouseCaptured) { VolumeControl.ReleaseMouseCapture(); } }