silverlight翻页

silverlight翻页,第1张

概述  查看Demo 另外,还可以将 Matrix3DProjection 和 Matrix3D 类型用于比使用 PlaneProjection 可能更复杂的准三维方案。 示例代码:沿Y轴翻转: XAML: < Image Grid.Row ="1" Height ="147" Horiz  

查看Demo

另外,还可以将 Matrix3DProjection Matrix3D 类型用于比使用 PlaneProjection 可能更复杂的准三维方案。

示例代码:沿Y轴翻转:

XAML:

          <      Image       GrID.Row      ="1"       Height      ="147"       HorizontalAlignment      ="left"       margin      ="52,28,0"       name      ="image1"       Stretch      ="Fill"        VerticalAlignment      ="top"       WIDth      ="220"       Source      ="/SilverlightApplication1;component/images/61e44a60jw1dglvwijv8nj.jpg"             >             <      Image.Projection      >             <      PlaneProjection       x:name      ="ppFlipImage"             ></      PlaneProjection      >             </      Image.Projection      >             </      Image      >             <      button       Content      ="button"       GrID.Row      ="1"       Height      ="23"       HorizontalAlignment      ="left"       margin      ="125,182,0"       name      ="button1"       VerticalAlignment      ="top"       WIDth      ="75"       Click      ="button1_Click"             />    

C#:

          using       System;       using       System.Collections.Generic;       using       System.linq;       using       System.Net;       using       System.windows;       using       System.windows.Controls;       using       System.windows.documents;       using       System.windows.input;       using       System.windows.Media;       using       System.windows.Media.Animation;       using       System.windows.Shapes;       using       System.windows.Threading;       namespace       SilverlightApplication1 {       public             partial             class       MainPage : UserControl {       public       MainPage() { InitializeComponent();       this      .LayoutRoot.Loaded       +=             new       RoutedEventHandler(LayoutRoot_Loaded); }       voID       LayoutRoot_Loaded(      object       sender,RoutedEventArgs e) { tmrY       =             new       dispatcherTimer(); tmrY.Tick       +=       tmrY_Tick; TimeSpan tsFlip       =             new       TimeSpan(      0      ,      0      ,frequence);       //       100 Milliseconds               tmrY.Interval       =       tsFlip; }       private             int       frequence       =             10      ;       private       dispatcherTimer tmrY;       private             voID       button1_Click(      object       sender,RoutedEventArgs e) {       //      this.ppFlipImage.RotationY = (this.ppFlipImage.RotationY + 1) % 360;                    if       (      !      tmrY.IsEnabled) { tmrY.Start(); }       else       { tmrY.Stop(); } }       voID       tmrY_Tick(      object       sender,EventArgs e) {       this      .ppFlipImage.RotationY       =       (      this      .ppFlipImage.RotationY       +             1      )       %             360      ; } } }    
总结

以上是内存溢出为你收集整理的silverlight翻页全部内容,希望文章能够帮你解决silverlight翻页所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1074207.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-26
下一篇2022-05-26

发表评论

登录后才能评论

评论列表(0条)

    保存