Unable to retrieve the missing variables for a Composition animation
I'm trying to apply a pointer animation using the Composition Api along with the Expression Builder. I've found a sample of what I need, but the code is imcomplete and I cannot figure out how to get the values for the variables center and distanceToCenter. The original docs and sample are here:
https://docs.microsoft.com/en-us/windows/uwp/composition/pointer-input-animations
Sample code (slightly modified):
using Microsoft.Toolkit.Uwp.UI.Animations.Expressions;
using EF = Microsoft.Toolkit.Uwp.UI.Animations.Expressions.ExpressionFunctions;
_tiltVisual = ElementCompositionPreview.GetElementVisual(element);
_pointerPositionPropSet = ElementCompositionPreview.GetPointerPositionPropertySet(element);
// || DEFINE THE EXPRESSION FOR THE ROTATION ANGLE ||
var hoverPosition = _pointerPositionPropSet.GetSpecializedReference<PointerPositionPropertySetReferenceNode>().Position;
var angleExpressionNode = EF.Conditional(hoverPosition == new Vector3(0, 0, 0),
ExpressionValues.CurrentValue.CreateScalarCurrentValue(),
35 * ((EF.Clamp(EF.Distance(center, hoverPosition), 0, distanceToCenter) % distanceToCenter) / distanceToCenter));
_tiltVisual.StartAnimation("RotationAngleInDegrees", angleExpressionNode);
// || DEFINE THE EXPRESSION FOR THE ROTATION AXIS ||
var axisAngleExpressionNode = EF.Vector3(-(hoverPosition.Y - center.Y) * EF.Conditional(hoverPosition.Y == center.Y, 0, 1),
(hoverPosition.X - center.X) * EF.Conditional(hoverPosition.X == center.X, 0, 1),
0);
_tiltVisual.StartAnimation("RotationAxis", axisAngleExpressionNode);
uwp windows-10-universal windows-community-toolkit windows-composition-api xaml-composition
add a comment |
I'm trying to apply a pointer animation using the Composition Api along with the Expression Builder. I've found a sample of what I need, but the code is imcomplete and I cannot figure out how to get the values for the variables center and distanceToCenter. The original docs and sample are here:
https://docs.microsoft.com/en-us/windows/uwp/composition/pointer-input-animations
Sample code (slightly modified):
using Microsoft.Toolkit.Uwp.UI.Animations.Expressions;
using EF = Microsoft.Toolkit.Uwp.UI.Animations.Expressions.ExpressionFunctions;
_tiltVisual = ElementCompositionPreview.GetElementVisual(element);
_pointerPositionPropSet = ElementCompositionPreview.GetPointerPositionPropertySet(element);
// || DEFINE THE EXPRESSION FOR THE ROTATION ANGLE ||
var hoverPosition = _pointerPositionPropSet.GetSpecializedReference<PointerPositionPropertySetReferenceNode>().Position;
var angleExpressionNode = EF.Conditional(hoverPosition == new Vector3(0, 0, 0),
ExpressionValues.CurrentValue.CreateScalarCurrentValue(),
35 * ((EF.Clamp(EF.Distance(center, hoverPosition), 0, distanceToCenter) % distanceToCenter) / distanceToCenter));
_tiltVisual.StartAnimation("RotationAngleInDegrees", angleExpressionNode);
// || DEFINE THE EXPRESSION FOR THE ROTATION AXIS ||
var axisAngleExpressionNode = EF.Vector3(-(hoverPosition.Y - center.Y) * EF.Conditional(hoverPosition.Y == center.Y, 0, 1),
(hoverPosition.X - center.X) * EF.Conditional(hoverPosition.X == center.X, 0, 1),
0);
_tiltVisual.StartAnimation("RotationAxis", axisAngleExpressionNode);
uwp windows-10-universal windows-community-toolkit windows-composition-api xaml-composition
1
You could get the Windows Composition Samples on Github: github.com/Microsoft/WindowsCompositionSamples
– Xavier Xie - MSFT
Nov 23 '18 at 7:50
add a comment |
I'm trying to apply a pointer animation using the Composition Api along with the Expression Builder. I've found a sample of what I need, but the code is imcomplete and I cannot figure out how to get the values for the variables center and distanceToCenter. The original docs and sample are here:
https://docs.microsoft.com/en-us/windows/uwp/composition/pointer-input-animations
Sample code (slightly modified):
using Microsoft.Toolkit.Uwp.UI.Animations.Expressions;
using EF = Microsoft.Toolkit.Uwp.UI.Animations.Expressions.ExpressionFunctions;
_tiltVisual = ElementCompositionPreview.GetElementVisual(element);
_pointerPositionPropSet = ElementCompositionPreview.GetPointerPositionPropertySet(element);
// || DEFINE THE EXPRESSION FOR THE ROTATION ANGLE ||
var hoverPosition = _pointerPositionPropSet.GetSpecializedReference<PointerPositionPropertySetReferenceNode>().Position;
var angleExpressionNode = EF.Conditional(hoverPosition == new Vector3(0, 0, 0),
ExpressionValues.CurrentValue.CreateScalarCurrentValue(),
35 * ((EF.Clamp(EF.Distance(center, hoverPosition), 0, distanceToCenter) % distanceToCenter) / distanceToCenter));
_tiltVisual.StartAnimation("RotationAngleInDegrees", angleExpressionNode);
// || DEFINE THE EXPRESSION FOR THE ROTATION AXIS ||
var axisAngleExpressionNode = EF.Vector3(-(hoverPosition.Y - center.Y) * EF.Conditional(hoverPosition.Y == center.Y, 0, 1),
(hoverPosition.X - center.X) * EF.Conditional(hoverPosition.X == center.X, 0, 1),
0);
_tiltVisual.StartAnimation("RotationAxis", axisAngleExpressionNode);
uwp windows-10-universal windows-community-toolkit windows-composition-api xaml-composition
I'm trying to apply a pointer animation using the Composition Api along with the Expression Builder. I've found a sample of what I need, but the code is imcomplete and I cannot figure out how to get the values for the variables center and distanceToCenter. The original docs and sample are here:
https://docs.microsoft.com/en-us/windows/uwp/composition/pointer-input-animations
Sample code (slightly modified):
using Microsoft.Toolkit.Uwp.UI.Animations.Expressions;
using EF = Microsoft.Toolkit.Uwp.UI.Animations.Expressions.ExpressionFunctions;
_tiltVisual = ElementCompositionPreview.GetElementVisual(element);
_pointerPositionPropSet = ElementCompositionPreview.GetPointerPositionPropertySet(element);
// || DEFINE THE EXPRESSION FOR THE ROTATION ANGLE ||
var hoverPosition = _pointerPositionPropSet.GetSpecializedReference<PointerPositionPropertySetReferenceNode>().Position;
var angleExpressionNode = EF.Conditional(hoverPosition == new Vector3(0, 0, 0),
ExpressionValues.CurrentValue.CreateScalarCurrentValue(),
35 * ((EF.Clamp(EF.Distance(center, hoverPosition), 0, distanceToCenter) % distanceToCenter) / distanceToCenter));
_tiltVisual.StartAnimation("RotationAngleInDegrees", angleExpressionNode);
// || DEFINE THE EXPRESSION FOR THE ROTATION AXIS ||
var axisAngleExpressionNode = EF.Vector3(-(hoverPosition.Y - center.Y) * EF.Conditional(hoverPosition.Y == center.Y, 0, 1),
(hoverPosition.X - center.X) * EF.Conditional(hoverPosition.X == center.X, 0, 1),
0);
_tiltVisual.StartAnimation("RotationAxis", axisAngleExpressionNode);
uwp windows-10-universal windows-community-toolkit windows-composition-api xaml-composition
uwp windows-10-universal windows-community-toolkit windows-composition-api xaml-composition
edited Nov 23 '18 at 6:03
Xavier Xie - MSFT
5,8141317
5,8141317
asked Nov 21 '18 at 14:53
MaximusMaximus
722930
722930
1
You could get the Windows Composition Samples on Github: github.com/Microsoft/WindowsCompositionSamples
– Xavier Xie - MSFT
Nov 23 '18 at 7:50
add a comment |
1
You could get the Windows Composition Samples on Github: github.com/Microsoft/WindowsCompositionSamples
– Xavier Xie - MSFT
Nov 23 '18 at 7:50
1
1
You could get the Windows Composition Samples on Github: github.com/Microsoft/WindowsCompositionSamples
– Xavier Xie - MSFT
Nov 23 '18 at 7:50
You could get the Windows Composition Samples on Github: github.com/Microsoft/WindowsCompositionSamples
– Xavier Xie - MSFT
Nov 23 '18 at 7:50
add a comment |
1 Answer
1
active
oldest
votes
Thanks to Xavier Xie, I found the full code:
// Grab the backing Visual for the UIElement image
_tiltVisual = ElementCompositionPreview.GetElementVisual(tiltImage);
// Set the CenterPoint of the backing Visual, so the rotation axis will defined from the middle
_tiltVisual.CenterPoint = new Vector3((float)tiltImage.Width / 2, (float)tiltImage.Height / 2, 0f);
// Grab the PropertySet containing the hover pointer data that will be used to drive the rotations
// Note: We have a second UIElement we will grab the pointer data against and the other we will animate
_hoverPositionPropertySet = ElementCompositionPreview.GetPointerPositionPropertySet(HitTestRect);
// Calculate distance from corner of quadrant to Center
var center = new Vector3((float)tiltImage.Width / 2, (float)tiltImage.Height / 2, 0);
var xSquared = Math.Pow(tiltImage.Width / 2, 2);
var ySquared = Math.Pow(tiltImage.Height / 2, 2);
var distanceToCenter = (float)Math.Sqrt(xSquared + ySquared);
// || DEFINE THE EXPRESSION FOR THE ROTATION ANGLE ||
// We calculate the Rotation Angle such that it increases from 0 to 35 as the cursor position moves away from the center.
// Combined with animating the Rotation Axis, the image is "push down" on the point at which the cursor is located.
// Note: We special case when the hover position is (0,0,0) as this is the starting hover position and and we want the image to be flat (rotationAngle = 0) at startup.
var hoverPosition = _hoverPositionPropertySet.GetSpecializedReference<PointerPositionPropertySetReferenceNode>().Position;
var angleExpressionNode =
EF.Conditional(
hoverPosition == new Vector3(0, 0, 0),
ExpressionValues.CurrentValue.CreateScalarCurrentValue(),
35 * ((EF.Clamp(EF.Distance(center, hoverPosition), 0, distanceToCenter) % distanceToCenter) / distanceToCenter));
_tiltVisual.StartAnimation("RotationAngleInDegrees", angleExpressionNode);
// || DEFINE THE EXPRESSION FOR THE ROTATION AXIS ||
// The RotationAxis will be defined as the axis perpendicular to vector position of the hover pointer (vector from center to hover position).
// The axis is a vector calculated by first converting the pointer position into the coordinate space where the center point (0, 0) is in the middle.
// The perpendicular axis is then calculated by transposing the cartesian x, y components and negating one (e.g. Vector3(-y,x,0) )
var axisAngleExpressionNode = EF.Vector3(
-(hoverPosition.Y - center.Y) * EF.Conditional(hoverPosition.Y == center.Y, 0, 1),
(hoverPosition.X - center.X) * EF.Conditional(hoverPosition.X == center.X, 0, 1),
0);
_tiltVisual.StartAnimation("RotationAxis", axisAngleExpressionNode);
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53414716%2funable-to-retrieve-the-missing-variables-for-a-composition-animation%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks to Xavier Xie, I found the full code:
// Grab the backing Visual for the UIElement image
_tiltVisual = ElementCompositionPreview.GetElementVisual(tiltImage);
// Set the CenterPoint of the backing Visual, so the rotation axis will defined from the middle
_tiltVisual.CenterPoint = new Vector3((float)tiltImage.Width / 2, (float)tiltImage.Height / 2, 0f);
// Grab the PropertySet containing the hover pointer data that will be used to drive the rotations
// Note: We have a second UIElement we will grab the pointer data against and the other we will animate
_hoverPositionPropertySet = ElementCompositionPreview.GetPointerPositionPropertySet(HitTestRect);
// Calculate distance from corner of quadrant to Center
var center = new Vector3((float)tiltImage.Width / 2, (float)tiltImage.Height / 2, 0);
var xSquared = Math.Pow(tiltImage.Width / 2, 2);
var ySquared = Math.Pow(tiltImage.Height / 2, 2);
var distanceToCenter = (float)Math.Sqrt(xSquared + ySquared);
// || DEFINE THE EXPRESSION FOR THE ROTATION ANGLE ||
// We calculate the Rotation Angle such that it increases from 0 to 35 as the cursor position moves away from the center.
// Combined with animating the Rotation Axis, the image is "push down" on the point at which the cursor is located.
// Note: We special case when the hover position is (0,0,0) as this is the starting hover position and and we want the image to be flat (rotationAngle = 0) at startup.
var hoverPosition = _hoverPositionPropertySet.GetSpecializedReference<PointerPositionPropertySetReferenceNode>().Position;
var angleExpressionNode =
EF.Conditional(
hoverPosition == new Vector3(0, 0, 0),
ExpressionValues.CurrentValue.CreateScalarCurrentValue(),
35 * ((EF.Clamp(EF.Distance(center, hoverPosition), 0, distanceToCenter) % distanceToCenter) / distanceToCenter));
_tiltVisual.StartAnimation("RotationAngleInDegrees", angleExpressionNode);
// || DEFINE THE EXPRESSION FOR THE ROTATION AXIS ||
// The RotationAxis will be defined as the axis perpendicular to vector position of the hover pointer (vector from center to hover position).
// The axis is a vector calculated by first converting the pointer position into the coordinate space where the center point (0, 0) is in the middle.
// The perpendicular axis is then calculated by transposing the cartesian x, y components and negating one (e.g. Vector3(-y,x,0) )
var axisAngleExpressionNode = EF.Vector3(
-(hoverPosition.Y - center.Y) * EF.Conditional(hoverPosition.Y == center.Y, 0, 1),
(hoverPosition.X - center.X) * EF.Conditional(hoverPosition.X == center.X, 0, 1),
0);
_tiltVisual.StartAnimation("RotationAxis", axisAngleExpressionNode);
add a comment |
Thanks to Xavier Xie, I found the full code:
// Grab the backing Visual for the UIElement image
_tiltVisual = ElementCompositionPreview.GetElementVisual(tiltImage);
// Set the CenterPoint of the backing Visual, so the rotation axis will defined from the middle
_tiltVisual.CenterPoint = new Vector3((float)tiltImage.Width / 2, (float)tiltImage.Height / 2, 0f);
// Grab the PropertySet containing the hover pointer data that will be used to drive the rotations
// Note: We have a second UIElement we will grab the pointer data against and the other we will animate
_hoverPositionPropertySet = ElementCompositionPreview.GetPointerPositionPropertySet(HitTestRect);
// Calculate distance from corner of quadrant to Center
var center = new Vector3((float)tiltImage.Width / 2, (float)tiltImage.Height / 2, 0);
var xSquared = Math.Pow(tiltImage.Width / 2, 2);
var ySquared = Math.Pow(tiltImage.Height / 2, 2);
var distanceToCenter = (float)Math.Sqrt(xSquared + ySquared);
// || DEFINE THE EXPRESSION FOR THE ROTATION ANGLE ||
// We calculate the Rotation Angle such that it increases from 0 to 35 as the cursor position moves away from the center.
// Combined with animating the Rotation Axis, the image is "push down" on the point at which the cursor is located.
// Note: We special case when the hover position is (0,0,0) as this is the starting hover position and and we want the image to be flat (rotationAngle = 0) at startup.
var hoverPosition = _hoverPositionPropertySet.GetSpecializedReference<PointerPositionPropertySetReferenceNode>().Position;
var angleExpressionNode =
EF.Conditional(
hoverPosition == new Vector3(0, 0, 0),
ExpressionValues.CurrentValue.CreateScalarCurrentValue(),
35 * ((EF.Clamp(EF.Distance(center, hoverPosition), 0, distanceToCenter) % distanceToCenter) / distanceToCenter));
_tiltVisual.StartAnimation("RotationAngleInDegrees", angleExpressionNode);
// || DEFINE THE EXPRESSION FOR THE ROTATION AXIS ||
// The RotationAxis will be defined as the axis perpendicular to vector position of the hover pointer (vector from center to hover position).
// The axis is a vector calculated by first converting the pointer position into the coordinate space where the center point (0, 0) is in the middle.
// The perpendicular axis is then calculated by transposing the cartesian x, y components and negating one (e.g. Vector3(-y,x,0) )
var axisAngleExpressionNode = EF.Vector3(
-(hoverPosition.Y - center.Y) * EF.Conditional(hoverPosition.Y == center.Y, 0, 1),
(hoverPosition.X - center.X) * EF.Conditional(hoverPosition.X == center.X, 0, 1),
0);
_tiltVisual.StartAnimation("RotationAxis", axisAngleExpressionNode);
add a comment |
Thanks to Xavier Xie, I found the full code:
// Grab the backing Visual for the UIElement image
_tiltVisual = ElementCompositionPreview.GetElementVisual(tiltImage);
// Set the CenterPoint of the backing Visual, so the rotation axis will defined from the middle
_tiltVisual.CenterPoint = new Vector3((float)tiltImage.Width / 2, (float)tiltImage.Height / 2, 0f);
// Grab the PropertySet containing the hover pointer data that will be used to drive the rotations
// Note: We have a second UIElement we will grab the pointer data against and the other we will animate
_hoverPositionPropertySet = ElementCompositionPreview.GetPointerPositionPropertySet(HitTestRect);
// Calculate distance from corner of quadrant to Center
var center = new Vector3((float)tiltImage.Width / 2, (float)tiltImage.Height / 2, 0);
var xSquared = Math.Pow(tiltImage.Width / 2, 2);
var ySquared = Math.Pow(tiltImage.Height / 2, 2);
var distanceToCenter = (float)Math.Sqrt(xSquared + ySquared);
// || DEFINE THE EXPRESSION FOR THE ROTATION ANGLE ||
// We calculate the Rotation Angle such that it increases from 0 to 35 as the cursor position moves away from the center.
// Combined with animating the Rotation Axis, the image is "push down" on the point at which the cursor is located.
// Note: We special case when the hover position is (0,0,0) as this is the starting hover position and and we want the image to be flat (rotationAngle = 0) at startup.
var hoverPosition = _hoverPositionPropertySet.GetSpecializedReference<PointerPositionPropertySetReferenceNode>().Position;
var angleExpressionNode =
EF.Conditional(
hoverPosition == new Vector3(0, 0, 0),
ExpressionValues.CurrentValue.CreateScalarCurrentValue(),
35 * ((EF.Clamp(EF.Distance(center, hoverPosition), 0, distanceToCenter) % distanceToCenter) / distanceToCenter));
_tiltVisual.StartAnimation("RotationAngleInDegrees", angleExpressionNode);
// || DEFINE THE EXPRESSION FOR THE ROTATION AXIS ||
// The RotationAxis will be defined as the axis perpendicular to vector position of the hover pointer (vector from center to hover position).
// The axis is a vector calculated by first converting the pointer position into the coordinate space where the center point (0, 0) is in the middle.
// The perpendicular axis is then calculated by transposing the cartesian x, y components and negating one (e.g. Vector3(-y,x,0) )
var axisAngleExpressionNode = EF.Vector3(
-(hoverPosition.Y - center.Y) * EF.Conditional(hoverPosition.Y == center.Y, 0, 1),
(hoverPosition.X - center.X) * EF.Conditional(hoverPosition.X == center.X, 0, 1),
0);
_tiltVisual.StartAnimation("RotationAxis", axisAngleExpressionNode);
Thanks to Xavier Xie, I found the full code:
// Grab the backing Visual for the UIElement image
_tiltVisual = ElementCompositionPreview.GetElementVisual(tiltImage);
// Set the CenterPoint of the backing Visual, so the rotation axis will defined from the middle
_tiltVisual.CenterPoint = new Vector3((float)tiltImage.Width / 2, (float)tiltImage.Height / 2, 0f);
// Grab the PropertySet containing the hover pointer data that will be used to drive the rotations
// Note: We have a second UIElement we will grab the pointer data against and the other we will animate
_hoverPositionPropertySet = ElementCompositionPreview.GetPointerPositionPropertySet(HitTestRect);
// Calculate distance from corner of quadrant to Center
var center = new Vector3((float)tiltImage.Width / 2, (float)tiltImage.Height / 2, 0);
var xSquared = Math.Pow(tiltImage.Width / 2, 2);
var ySquared = Math.Pow(tiltImage.Height / 2, 2);
var distanceToCenter = (float)Math.Sqrt(xSquared + ySquared);
// || DEFINE THE EXPRESSION FOR THE ROTATION ANGLE ||
// We calculate the Rotation Angle such that it increases from 0 to 35 as the cursor position moves away from the center.
// Combined with animating the Rotation Axis, the image is "push down" on the point at which the cursor is located.
// Note: We special case when the hover position is (0,0,0) as this is the starting hover position and and we want the image to be flat (rotationAngle = 0) at startup.
var hoverPosition = _hoverPositionPropertySet.GetSpecializedReference<PointerPositionPropertySetReferenceNode>().Position;
var angleExpressionNode =
EF.Conditional(
hoverPosition == new Vector3(0, 0, 0),
ExpressionValues.CurrentValue.CreateScalarCurrentValue(),
35 * ((EF.Clamp(EF.Distance(center, hoverPosition), 0, distanceToCenter) % distanceToCenter) / distanceToCenter));
_tiltVisual.StartAnimation("RotationAngleInDegrees", angleExpressionNode);
// || DEFINE THE EXPRESSION FOR THE ROTATION AXIS ||
// The RotationAxis will be defined as the axis perpendicular to vector position of the hover pointer (vector from center to hover position).
// The axis is a vector calculated by first converting the pointer position into the coordinate space where the center point (0, 0) is in the middle.
// The perpendicular axis is then calculated by transposing the cartesian x, y components and negating one (e.g. Vector3(-y,x,0) )
var axisAngleExpressionNode = EF.Vector3(
-(hoverPosition.Y - center.Y) * EF.Conditional(hoverPosition.Y == center.Y, 0, 1),
(hoverPosition.X - center.X) * EF.Conditional(hoverPosition.X == center.X, 0, 1),
0);
_tiltVisual.StartAnimation("RotationAxis", axisAngleExpressionNode);
answered Nov 26 '18 at 14:42
MaximusMaximus
722930
722930
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53414716%2funable-to-retrieve-the-missing-variables-for-a-composition-animation%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
You could get the Windows Composition Samples on Github: github.com/Microsoft/WindowsCompositionSamples
– Xavier Xie - MSFT
Nov 23 '18 at 7:50