This project is read-only.

Applying manipulation on content inside the LockScreenPreview component

Dec 4, 2013 at 9:24 PM
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.

Dec 5, 2013 at 7:02 PM
Can you create a ticket with a repro so I can see what you're seeing?