本文整理匯總了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())
}
}