Beispiel #1
0
 protected override void OnMouseLeave(MouseEventArgs e)
 {
     IconLight.BeginAnimation(OpacityProperty, new DoubleAnimation(0, new Duration(TimeSpan.FromSeconds(0.2))));
     //Sel_Rectangle.Visibility = System.Windows.Visibility.Collapsed;
     base.OnMouseLeave(e);
 }
Beispiel #2
0
 protected override void OnMouseEnter(MouseEventArgs e)
 {
     //Sel_Rectangle.Visibility = System.Windows.Visibility.Visible;
     IconLight.BeginAnimation(OpacityProperty, new DoubleAnimation(1, new Duration(TimeSpan.FromSeconds(0.2))));
     base.OnMouseEnter(e);
 }