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