首页 新闻 会员 周边 捐助

silverlight arcgis 后台用Draw前台用DoubleAnimation实现流动线层

0
悬赏园豆:40 [已关闭问题] 关闭于 2016-07-14 17:27
画一条直线,实现直线流动显示,线段一段流向另一端的控制怎么实现
前台
 <esri:SimpleLineSymbol x:Key="RouteRenderer" Style="DashDotDot" >
                <esri:LineSymbol.ControlTemplate>
                    <ControlTemplate>
                        <Grid>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal">
                                        <Storyboard  RepeatBehavior="Forever"   >
                                            <DoubleAnimation  BeginTime="0:0:0" RepeatBehavior="3x"  From="50"  
                                                              AutoReverse="True"  Storyboard.TargetName="Element" 
                                                              Storyboard.TargetProperty="StrokeDashOffset"  To="500" Duration="0:3:0" />
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Path x:Name="Element" StrokeDashArray="1,2" StrokeDashOffset="0" Stroke="#990000FF" StrokeThickness="8" />
                        </Grid>
                    </ControlTemplate>
                </esri:LineSymbol.ControlTemplate>
            </esri:SimpleLineSymbol>
后台是Draw画的
为云飞翔的主页 为云飞翔 | 初学一级 | 园豆:162
提问于:2014-05-10 19:38
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册