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); }
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); }