本文整理汇总了C#中System.Windows.Media.ScaleTransform.GetHashCode方法的典型用法代码示例。如果您正苦于以下问题:C# ScaleTransform.GetHashCode方法的具体用法?C# ScaleTransform.GetHashCode怎么用?C# ScaleTransform.GetHashCode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Media.ScaleTransform
的用法示例。
在下文中一共展示了ScaleTransform.GetHashCode方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ChawAnimation
private void ChawAnimation()
{
PathData.StrokeThickness = 0;
PathData.Fill = new SolidColorBrush(BattlefieldCircumstantials.BlackColor);
PathData.Data = Geometry.Parse("M0,0 M100,100 M50,50 L101,25 101,75");
PathData.RenderTransformOrigin = new Point(0.5, 0.5);
Panel.SetZIndex(PathData, 1);
Panel.SetZIndex(this, 1);
var translation = new ScaleTransform(1, 1);
var translationName = "Chawing" + translation.GetHashCode();
RegisterName(translationName, translation);
PathData.RenderTransform = translation;
var anim = new DoubleAnimation(1, 0, new Duration(TimeSpan.FromMilliseconds(200)))
{
//EasingFunction = new PowerEase { EasingMode = EasingMode.EaseIn },
RepeatBehavior = RepeatBehavior.Forever,
AutoReverse = true
};
var sb = new Storyboard();
sb.Children.Add(anim);
Storyboard.SetTargetName(sb, translationName);
Storyboard.SetTargetProperty(sb, new PropertyPath(ScaleTransform.ScaleYProperty));
var storyboardName = "s" + sb.GetHashCode();
Resources.Add(storyboardName, sb);
sb.Begin();
}