本文整理汇总了C#中System.Windows.Media.ScaleTransform.animate方法的典型用法代码示例。如果您正苦于以下问题:C# ScaleTransform.animate方法的具体用法?C# ScaleTransform.animate怎么用?C# ScaleTransform.animate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Media.ScaleTransform
的用法示例。
在下文中一共展示了ScaleTransform.animate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: loadBubbles
private void loadBubbles()
{
PART_bubbles.Children.Clear();
var animationSkew = 0;
foreach (var theme in themeSource)
{
var scaleTransfrom = new ScaleTransform(0, 0, .5, .5);
var bubbles = new Ellipse
{
Width = 50,
Height = 50,
Tag = theme,
Fill = theme.P500,
Effect = MaterialPalette.Shadows.ShadowDelta2,
RenderTransformOrigin = new Point(.5, .5),
RenderTransform = scaleTransfrom
};
bubbles.MouseUp += bubbleClicked;
PART_bubbles.Children.Add(bubbles);
scaleTransfrom.animate(ScaleTransform.ScaleXProperty, 400, 1, animationSkew, new BackEase
{ EasingMode = EasingMode.EaseOut, Amplitude = .6 });
scaleTransfrom.animate(ScaleTransform.ScaleYProperty, 400, 1, animationSkew, new BackEase
{ EasingMode = EasingMode.EaseOut, Amplitude = .6 });
animationSkew += 10;
//new SineEase {EasingMode = EasingMode.EaseIn});
//scaleTransfrom.BeginAnimation(ScaleTransform.ScaleXProperty, new DoubleAnimation())
}
}