I've got this code:
<Rectangle Fill="Red" Width="250" Height="200"
where the ManipulationDelta handle is:
private void UIElement_OnManipulationDelta(object sender, ManipulationDeltaEventArgs e)
var rect = sender as Rectangle;
var marginLeft = rect.Margin.Left + e.DeltaManipulation.Translation.X;
var marginTop = rect.Margin.Top + e.DeltaManipulation.Translation.Y;
rect.Margin = new Thickness(marginLeft, marginTop, 0, 0);
When my canvas is not set as content for the LockScreenPreview, I can move it without problems.
But when I put it into the LSP component, it doesn't move anymore.
I thought that this could have been something related to the routing of the manipulation events, but even setting the IsHitTestVisible property to false didn't help.