
xmlns= "http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x= "http://schemas.microsoft.com/winfx/2006/xaml"
xml:lang= "zh-CN"
xmlns:System= "clr-namespace:System;assembly=mscorlib"
x:name= "Window"
Title= "Window1"
WIDth= "640" Height= "480">
< Window.Resources>
< Storyboard x:Key= "Timeline1" RepeatBehavior= "Forever">
< DoubleAnimationUsingKeyFrames BeginTime= "00:00:00"
Storyboard.Targetname= "rectangle" Storyboard.TargetProperty= "(Shape.strokeDashOffset)">
< SplineDoubleKeyFrame KeyTime= "00:00:00" Value= "100" />
< SplineDoubleKeyFrame KeyTime= "00:00:00.5000000" Value= "10" />
< /DoubleAnimationUsingKeyFrames>
< /Storyboard>
< /Window.Resources>
< Window.Triggers>
< EventTrigger RoutedEvent= "FrameworkElement.Loaded" Sourcename= "rectangle">
< BeginStoryboard Storyboard= "{StaticResource Timeline1}" />
< /EventTrigger>
< /Window.Triggers>
< GrID x:name= "LayoutRoot">
< GrID margin= "125,291,68" VerticalAlignment= "Bottom" Height= "113">
< Rectangle Fill= "{x:Null}" stroke= "#FF000000" strokeDashCap= "Square"
strokeDashOffset= "100" strokeEndlineCap= "Square" strokelineJoin= "Miter"
strokeStartlineCap= "Flat" strokeThickness= "5" x:name= "rectangle">
< Rectangle.strokeDashArray>
< System:Double>0< /System:Double>
< System:Double>2< /System:Double>
< /Rectangle.strokeDashArray>
< /Rectangle>
< button margin= "2,2,2" Content= "button" />
< /GrID>
< /GrID>
< /Window> 总结
以上是内存溢出为你收集整理的silverlight动画全部内容,希望文章能够帮你解决silverlight动画所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)