Пример #1
0
 private void Window_MouseLeave(object sender, MouseEventArgs e)
 {
     Btn_Close.BeginAnimation(OpacityProperty, Animations.FadeOut);
 }
Пример #2
0
        private void Close_CursorEnter(object sender, CursorEventArgs e)
        {
            DoubleAnimation CloseAnimator = new DoubleAnimation(0.0, 1.0, new Duration(TimeSpan.FromSeconds(2)), FillBehavior.Stop);

            Btn_Close.BeginAnimation(OpacityProperty, CloseAnimator);
        }