I develop UWP application with listview of images with translucated items background like on Windows Phone Start screen (e.g. https://www.windowscentral.com/sites/wpcentral.com/files/styles/larger/public/field/image/2014/04/Clean_vs_Busy.jpg?itok=58NioLgB). I decided to base my solution on UWP Community toolkit parallax service. First I took left-top point of item:
var p = parallaxElement.TransformToVisual(scroller).TransformPoint(new Point(0, 0));
Where should I add this offset in animation expression? Also I did not find full documentation for this.
ExpressionAnimation expression = compositor.CreateExpressionAnimation(
"Matrix4x4.CreateFromTranslation(Vector3(HorizontalMultiplier * scroller.Translation.X, VerticalMultiplier * scroller.Translation.Y, 0.0f))");
expression.SetReferenceParameter("scroller", scrollerViewerManipulation);
expression.SetScalarParameter("offsetX", (float)p.X);
expression.SetScalarParameter("offsetY", (float)p.Y);
In other words, I'd like to make effect "looking through items on shared large image"; items are wholes in canvas.