标签:
MatrixTransform matrixTransform = new MatrixTransform();
StrokeRectangle.RenderTransform = matrixTransform;
RegisterName("StrokeMatrixTransform", matrixTransform);
Storyboard.SetTargetName(matrixAnimationUsingPath, "StrokeMatrixTransform");
Storyboard.SetTargetProperty(matrixAnimationUsingPath, new PropertyPath(MatrixTransform.MatrixProperty));
Storyboard.SetTarget(matrixAnimationUsingPath,StrokeRectangle);
Storyboard.SetTargetProperty(matrixAnimationUsingPath, new PropertyPath("RenderTransform.(MatrixTransform.Matrix)"));
StoryBoard.SetTarget 和 StoryBoard.SetTargetName 的区别
标签:
原文地址:http://www.cnblogs.com/pengzhong/p/StoryBoard_SetTarget.html