Browse Source

Re-enable animations in TestApplication.

pull/58/head
Steven Kirk 11 years ago
parent
commit
fb0835906a
  1. 28
      TestApplication/Program.cs

28
TestApplication/Program.cs

@ -569,20 +569,20 @@ namespace TestApplication
}
};
//var start = Animate.Stopwatch.Elapsed;
//var degrees = Animate.Timer
// .Select(x =>
// {
// var elapsed = (x - start).TotalSeconds;
// var cycles = elapsed / 4;
// var progress = cycles % 1;
// return 360.0 * progress;
// });
//border1.RenderTransform.Bind(
// RotateTransform.AngleProperty,
// degrees,
// BindingPriority.Animation);
var start = Animate.Stopwatch.Elapsed;
var degrees = Animate.Timer
.Select(x =>
{
var elapsed = (x - start).TotalSeconds;
var cycles = elapsed / 4;
var progress = cycles % 1;
return 360.0 * progress;
});
border1.RenderTransform.Bind(
RotateTransform.AngleProperty,
degrees,
BindingPriority.Animation);
return result;
}

Loading…
Cancel
Save