無理みたいなのでPolygonをPathに書き換えてやってみた所、
動きましたので解決にしたいと思います。
書いたStoryBoardは下記のです。
PathのValueにBindを行い、座標軸を設定しています。
<PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Path.Data).(PathGeometry.Figures)[0].(PathFigure.StartPoint)" Storyboard.TargetName="path">
<SplinePointKeyFrame KeyTime="0:0:0.1" Value="{Binding L1S}"/>
<SplinePointKeyFrame KeyTime="0:0:1" Value="{Binding L1E}"/>
</PointAnimationUsingKeyFrames>
<PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Path.Data).(PathGeometry.Figures)[0].(PathFigure.Segments)[0].(LineSegment.Point)" Storyboard.TargetName="path">
<SplinePointKeyFrame KeyTime="0:0:0.1" Value="{Binding L2S}"/>
<SplinePointKeyFrame KeyTime="0:0:1" Value="{Binding L2E}"/>
</PointAnimationUsingKeyFrames>
<PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Path.Data).(PathGeometry.Figures)[0].(PathFigure.Segments)[1].(LineSegment.Point)" Storyboard.TargetName="path">
<SplinePointKeyFrame KeyTime="0:0:0.1" Value="{Binding L3S}"/>
<SplinePointKeyFrame KeyTime="0:0:1" Value="{Binding L3E}"/>
</PointAnimationUsingKeyFrames>
<PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Path.Data).(PathGeometry.Figures)[0].(PathFigure.Segments)[2].(LineSegment.Point)" Storyboard.TargetName="path">
<SplinePointKeyFrame KeyTime="0:0:0.1" Value="{Binding L4S}"/>
<SplinePointKeyFrame KeyTime="0:0:1" Value="{Binding L4E}"/>
</PointAnimationUsingKeyFrames>
<PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Path.Data).(PathGeometry.Figures)[0].(PathFigure.Segments)[3].(LineSegment.Point)" Storyboard.TargetName="path">
<SplinePointKeyFrame KeyTime="0:0:0.1" Value="{Binding L5S}"/>
<SplinePointKeyFrame KeyTime="0:0:1" Value="{Binding L5E}"/>
</PointAnimationUsingKeyFrames>
|