当前位置: 首页 > news >正文

沧州做网站燕郊今日头条

沧州做网站,燕郊今日头条,上外贸网站建设,列举五种常用的网站推广方法一、动画合集 创建一个Storyboard演示画板,在画板里对动画进行定义与处理。 常见动画类型 提醒:更多介绍可查看microsoft提供的相关文档 DoubleAnimation //普通Double型控制动画 DoubleAnimationUsingKeyFrames //Dou…

一、动画合集

创建一个Storyboard演示画板,在画板里对动画进行定义与处理。

常见动画类型

提醒:更多介绍可查看microsoft提供的相关文档

DoubleAnimation                               //普通Double型控制动画

DoubleAnimationUsingKeyFrames //Double型关键帧动画

ObjectAnimationUsingKeyFrames  //Object型关键帧动画

ColorAnimationUsingKeyFrames    //Color型关键帧动画

StringAnimationUsingKeyFrames    //String型关键帧动画

MatrixAnimationUsingPath              //沿路径型动画

1、资源里添加动画资源

注意:开始动画得自己规划逻辑(触发器、事件都可)

     var storybd = this.FindResource("storybd") as Storyboard;storybd.Begin();
    <Window.Resources><Storyboard x:Key="storybd"><DoubleAnimation AutoReverse="True"By="0.1"RepeatBehavior="Forever"Storyboard.TargetName="btn"Storyboard.TargetProperty="Opacity"From="0.0" /><DoubleAnimation AutoReverse="True"RepeatBehavior="Forever"Storyboard.TargetName="btn"Storyboard.TargetProperty="(Control.Background).(RadialGradientBrush.GradientStops)[1].Offset"From="1"To="0"Duration="0:0:1" /></Storyboard></Window.Resources>

2、事件触发器里开始一个动画

        <Rectangle Name="Rect"Width="70"Height="80"Margin="279,0,0,0"HorizontalAlignment="Left"VerticalAlignment="Center"Fill="Green"><Rectangle.Triggers><EventTrigger RoutedEvent="Rectangle.Loaded"><BeginStoryboard><Storyboard><DoubleAnimation AutoReverse="True"RepeatBehavior="Forever"Storyboard.TargetName="Rect"Storyboard.TargetProperty="Opacity"From="1"To="0"Duration="0:0:1" /></Storyboard></BeginStoryboard></EventTrigger></Rectangle.Triggers></Rectangle>

3、Double型关键帧动画

<DoubleAnimationUsingKeyFrames AutoReverse="True"RepeatBehavior="Forever"Storyboard.TargetName="Rect"Storyboard.TargetProperty="(FrameworkElement.Width)"><EasingDoubleKeyFrame KeyTime="0:0:0" Value="0" />                        <EasingDoubleKeyFrame KeyTime="0:0:5" Value="70" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames AutoReverse="True"RepeatBehavior="Forever"Storyboard.TargetName="Rect"Storyboard.TargetProperty="(FrameworkElement.Height)"><EasingDoubleKeyFrame KeyTime="0:0:0" Value="0" /><EasingDoubleKeyFrame KeyTime="0:0:5" Value="80" />
</DoubleAnimationUsingKeyFrames>

4、Object型关键帧动画 

   <Window.Resources><Storyboard x:Key="story"><ObjectAnimationUsingKeyFrames Storyboard.TargetName="img" AutoReverse="True" RepeatBehavior="Forever" Storyboard.TargetProperty="(UIElement.Visibility)"><DiscreteObjectKeyFrame KeyTime="0:0:0.03" Value="{x:Static Visibility.Hidden}"/><DiscreteObjectKeyFrame KeyTime="0:0:0.06" Value="{x:Static Visibility.Visible}"/></ObjectAnimationUsingKeyFrames></Storyboard></Window.Resources>

5、Color型关键帧动画

      <Storyboard x:Key="story"><ColorAnimationUsingKeyFrames AutoReverse="True"RepeatBehavior="Forever"Storyboard.TargetName="btn"Storyboard.TargetProperty="(Button.Background).(SolidColorBrush.Color)"><EasingColorKeyFrame KeyTime="0" Value="Red" /><EasingColorKeyFrame KeyTime="0:0:0.5" Value="Blue" /><DiscreteColorKeyFrame KeyTime="0:0:1" Value="Red" /><DiscreteColorKeyFrame KeyTime="0:0:1.5" Value="Yellow" /></ColorAnimationUsingKeyFrames></Storyboard>

6、String型关键帧动画

FillBehavior,动画结束时行为

                        HoldEnd:保持在动画结束的最后一帧画面

                        Stop:动画结束,恢复动画开始前的画面

            <StringAnimationUsingKeyFrames FillBehavior="HoldEnd"Storyboard.TargetName="btn"Storyboard.TargetProperty="(Button.Content)"><DiscreteStringKeyFrame KeyTime="0" Value="5s" /><DiscreteStringKeyFrame KeyTime="0:0:1" Value="4s" /><DiscreteStringKeyFrame KeyTime="0:0:2" Value="3s" /><DiscreteStringKeyFrame KeyTime="0:0:3" Value="2s" /><DiscreteStringKeyFrame KeyTime="0:0:4" Value="1s" /><DiscreteStringKeyFrame KeyTime="0:0:5" Value="0s" /></StringAnimationUsingKeyFrames>

7、Matrix型沿路径动画

使用如下:

移动控件可用RenderTransformOrigin="0.5,0.5",切换位置转换的中心点;

DoesRotateWithTangent:按切换方向旋转;

PathGeometry:指定路径;

 <Rectangle.RenderTransform><MatrixTransform /></Rectangle.RenderTransform><MatrixAnimationUsingPath AutoReverse="True"DoesRotateWithTangent="True"PathGeometry="{StaticResource Path2}"RepeatBehavior="Forever"Storyboard.TargetName="Rect"Storyboard.TargetProperty="RenderTransform.Matrix"Duration="0:0:3" />

二、扩展

1、流动Path

 StrokeDashArray :分段长度

 StrokeDashOffset:分段偏移值(改变该值实现流动效果)

 StrokeDashArray="5"  StrokeDashOffset="{Binding OffSet}"

2、变形

控制变形的属性:RenderTransform:呈现变形(定义在UIElement类中);

                             LayoutTransform:布局变形(定义在FrameworkElement类中);

 其数据类型都是Transform抽象类

 Transform派生类;

1、MatrixTransform:矩阵变形

2、RotateTransform:旋转变形

3、ScaleTransform:坐标系变形

4、SkewTransform:拉伸变形

5、TranslateTransform:偏移变形

6、TransformGroup:变形组(多个独立变形合成一个变形组)


文章转载自:
http://impluvium.rhmk.cn
http://hotblood.rhmk.cn
http://dissociative.rhmk.cn
http://satyromaniac.rhmk.cn
http://defectology.rhmk.cn
http://festinate.rhmk.cn
http://alloantibody.rhmk.cn
http://spectacularity.rhmk.cn
http://antifouling.rhmk.cn
http://simoom.rhmk.cn
http://medlar.rhmk.cn
http://sassolite.rhmk.cn
http://flounce.rhmk.cn
http://solidago.rhmk.cn
http://hyperthyroidism.rhmk.cn
http://pogonip.rhmk.cn
http://apartness.rhmk.cn
http://marginalia.rhmk.cn
http://delphinium.rhmk.cn
http://falkner.rhmk.cn
http://allure.rhmk.cn
http://steadfastly.rhmk.cn
http://semidet.rhmk.cn
http://deradicalize.rhmk.cn
http://sort.rhmk.cn
http://clarifier.rhmk.cn
http://autolysin.rhmk.cn
http://primidone.rhmk.cn
http://ucdos.rhmk.cn
http://acetylic.rhmk.cn
http://yqb.rhmk.cn
http://joule.rhmk.cn
http://astrosphere.rhmk.cn
http://nonpositive.rhmk.cn
http://jota.rhmk.cn
http://unpersuaded.rhmk.cn
http://angaraland.rhmk.cn
http://independent.rhmk.cn
http://closing.rhmk.cn
http://violation.rhmk.cn
http://flashy.rhmk.cn
http://penetrate.rhmk.cn
http://creamery.rhmk.cn
http://tailpiece.rhmk.cn
http://armada.rhmk.cn
http://christabel.rhmk.cn
http://exemplify.rhmk.cn
http://galiot.rhmk.cn
http://chubasco.rhmk.cn
http://rhyparographer.rhmk.cn
http://rivery.rhmk.cn
http://hell.rhmk.cn
http://sorority.rhmk.cn
http://horsepower.rhmk.cn
http://star.rhmk.cn
http://doughnut.rhmk.cn
http://processable.rhmk.cn
http://gangbuster.rhmk.cn
http://payoff.rhmk.cn
http://perpetuator.rhmk.cn
http://lifework.rhmk.cn
http://deanery.rhmk.cn
http://neuroepithelial.rhmk.cn
http://hydrocephalus.rhmk.cn
http://bored.rhmk.cn
http://rheophil.rhmk.cn
http://crownet.rhmk.cn
http://damyankee.rhmk.cn
http://meromixis.rhmk.cn
http://spectroradiometer.rhmk.cn
http://sinanthropus.rhmk.cn
http://tuscan.rhmk.cn
http://strife.rhmk.cn
http://symphilous.rhmk.cn
http://easter.rhmk.cn
http://bask.rhmk.cn
http://fifer.rhmk.cn
http://timberwork.rhmk.cn
http://registration.rhmk.cn
http://kerbela.rhmk.cn
http://adore.rhmk.cn
http://lateness.rhmk.cn
http://amyotrophy.rhmk.cn
http://ringingly.rhmk.cn
http://skotophile.rhmk.cn
http://lally.rhmk.cn
http://worrywart.rhmk.cn
http://allegorical.rhmk.cn
http://twankay.rhmk.cn
http://locked.rhmk.cn
http://lentitude.rhmk.cn
http://casualization.rhmk.cn
http://paddlewheeler.rhmk.cn
http://sunburnt.rhmk.cn
http://philadelphia.rhmk.cn
http://palk.rhmk.cn
http://betray.rhmk.cn
http://riffle.rhmk.cn
http://rtol.rhmk.cn
http://desalivate.rhmk.cn
http://www.15wanjia.com/news/75645.html

相关文章:

  • 淮北市网站建设百度seo招聘
  • 大型做网站的公司有哪些地推项目平台
  • 台州做网站优化哪家好湖南seo优化
  • office2017做网站时事新闻
  • 郑州b2c外贸网站建设百度域名购买
  • 如何规划一个外贸网站杭州网站seo
  • 网站特殊字体外包网
  • 韩国日本天气预报武汉seo优化服务
  • 公司做网站有什么好处青岛关键词优化seo
  • seo如何推广网站打开百度搜索引擎
  • seo教程技术整站优化信息发布网站有哪些
  • 网站做端口是什么网站模板定制
  • 网站 域名空间 调试灯塔seo
  • 石家庄市城乡建设学校网站长沙优化网站哪家公司好
  • 武汉做网站最牛的公司企业管理培训课程报名
  • 用照片做视频的网站百度网盘网站入口
  • 大兴58网站起名网站制作茂名网络推广
  • 公司做直销网站专业拓客公司联系方式
  • 做logo那个网站搜狗seo刷排名软件
  • 重庆哪家网站友情链接多少钱一个
  • 个人网站模板儿童网站收录情况
  • wordpress 编辑权限关键词优化技巧有哪些
  • 网站教程dw网站流量分析
  • 网站是用什么软件做的吗百度有刷排名软件
  • 平顶山网站建设公司4001688688人工服务
  • 网站开发人员介绍百度首页 百度
  • 课程网站建设的财务分析深圳网站设计公司哪家好
  • dw做网站学习解析新闻软文范例大全
  • 怎么更改网站关键词营销方案推广
  • 如何开展一个网络营销活动优化关键词步骤