SetTargetName
MatrixTransform matrixTransform = new MatrixTransform();
StrokeRectangle.RenderTransform = matrixTransform;
RegisterName("StrokeMatrixTransform", matrixTransform);
Storyboard.SetTargetName(matrixAnimationUsingPath, "StrokeMatrixTransform");
Storyboard.SetTargetProperty(matrixAnimationUsingPath, new PropertyPath(MatrixTransform.MatrixProperty));
SetTarget
Storyboard.SetTarget(matrixAnimationUsingPath,StrokeRectangle);
Storyboard.SetTargetProperty(matrixAnimationUsingPath, new PropertyPath("RenderTransform.(MatrixTransform.Matrix)"));