Exemple #1
0
        private static void AnimationFunction_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ByteAnimation a = (ByteAnimation)d;

            a._isAnimationFunctionValid = false;
            a.PropertyChanged(e.Property);
        }
 private void FadeOut(int durationInMilliseconds)
 {
     this.timer.Enabled = false;
     var animation = new ByteAnimation(0, new Duration(TimeSpan.FromMilliseconds(durationInMilliseconds)));
     this.BeginAnimation(HandInterfaceElement.InterfaceOpacityProperty, animation);
 }
 private void FadeIn(int durationInMilliseconds)
 {
     var animation = new ByteAnimation(100, new Duration(TimeSpan.FromMilliseconds(durationInMilliseconds)));
     this.BeginAnimation(HandInterfaceElement.InterfaceOpacityProperty, animation);
 }