问题描述
我创建了一个其中包含SVG的Usercontrol。我使用SvgToXaml转换器执行此操作(很棒的工具)。图像正常工作,但是现在我想为“ DrawingGroup”中的GeometryDrawing
设置动画。但是,由于这是使用DrawingImage
的新功能,因此我似乎找不到合适的位置放置我的故事板,并弄清楚我将使用什么故事板。
<Image x:Name="myImage">
<Image.Source>
<DrawingImage>
<DrawingImage.Drawing>
<DrawingGroup ClipGeometry="M0,0 V221.89 H661.53 V0 H0 Z">
---- GeometryDrawing #1 ----
<GeometryDrawing Brush="#FFFFFFFF">
<GeometryDrawing.Geometry>
<EllipseGeometry
x:Name="MyAnimatedEllipseGeometry"
Center="191.85,167.5"
RadiusX="33.81"
RadiusY="33.81" />
</GeometryDrawing.Geometry>
</GeometryDrawing>
---- GeometryDrawing #3 ----
---- GeometryDrawing #4 ----
</DrawingImage.Drawing>
</DrawingImage>
</Image.Source>
</Image>
我要实现的是在MyAnimatedEllipseGeometry
处加载EllipseGeometry
到x 0,然后在5秒钟左右的时间内移到x 167。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)