コード例 #1
0
 private void AnimateCurrentReposition()
 {
     StoryBoard.BeginPlay(new FunctionBasedAnimation(FunctionBasedAnimation.Functions.SoftedFluid)
     {
         Duration    = 200,
         From        = this.offsetForPanning,
         To          = 0,
         OnAnimation = v => { this.offsetForPanning = v; this.Update(); }
     });
 }
コード例 #2
0
ファイル: HomeScreen.cs プロジェクト: hksonngan/fleux
 private void GoToPrograms()
 {
     StoryBoard.BeginPlay(new FunctionBasedAnimation(FunctionBasedAnimation.Functions.SoftedFluid)
     {
         Duration    = 500,
         From        = this.homeScreenCanvas.Location.X,
         To          = -480,
         OnAnimation = v => { this.homeScreenCanvas.Location = new Point(v, 0); this.homeScreenCanvas.Update(); }
     });
     StoryBoard.BeginPlay(new FunctionBasedAnimation(FunctionBasedAnimation.Functions.SoftedFluid)
     {
         Duration    = 500,
         From        = this.switchArrow.Location.X,
         To          = 500,
         OnAnimation = v =>
         {
             this.switchArrow.Location = new Point(v, this.switchArrow.Location.Y);
             this.switchArrow.Update();
         }
     });
     this.switchArrow.Image = ResourceManager.Instance.GetBitmapFromEmbeddedResource("left.png");
     this.showingTiles      = false;
 }
コード例 #3
0
 private void StoryBoardPlay(IAnimation animation)
 {
     this.CancelCurrentAnimation();
     this.animation = animation;
     StoryBoard.BeginPlay(this.animation);
 }