private void MouseLeave_e(object sender, MouseEventArgs e) { DoubleAnimation UnfillAnim = new DoubleAnimation(0, new Duration(new TimeSpan(0, 0, 0, 0, 200))); AnimatedPartGrid.BeginAnimation(Grid.WidthProperty, UnfillAnim); SwapTextColorToDark(); }
//Mouse moves handlers private void MouseEnter_e(object sender, MouseEventArgs e) { DoubleAnimation FillAnim = new DoubleAnimation(ContentPartGrid.ActualWidth, new Duration(new TimeSpan(0, 0, 0, 0, 200))); AnimatedPartGrid.BeginAnimation(Grid.WidthProperty, FillAnim); SwapTextColorToBase(); }