<
Window
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>
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>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。