Beispiel #1
0
 private void UserControl_MouseLeave(object sender, MouseEventArgs e)
 {
     if (IsDark)
     {
         StaticFunctions.AnimateColor(Color.FromArgb(50, 255, 255, 255), Colors.Transparent, this, 0.2);
     }
     else
     {
         StaticFunctions.AnimateColor(Colors.Gainsboro, Colors.Transparent, this, 0.2);
     }
 }
Beispiel #2
0
 private void UserControl_PreviewKeyDown(object sender, System.Windows.Input.KeyEventArgs e)
 {
     if (e.Key == Key.Down)
     {
         if (_isDark)
         {
             StaticFunctions.AnimateColor(Colors.Transparent, Color.FromArgb(50, 255, 255, 255), ItemList[currentIndex + 1], 0.2);
         }
         else
         {
             StaticFunctions.AnimateColor(Colors.Transparent, Colors.Gainsboro, ItemList[currentIndex + 1], 0.2);
         }
         if (currentIndex == ItemList.Count)
         {
             currentIndex = 0;
         }
         else
         {
             currentIndex += 1;
         }
     }
 }
 private void UserControl_MouseLeave(object sender, MouseEventArgs e)
 {
     StaticFunctions.AnimateColor(Colors.Gainsboro, Colors.White, bg, 0.2);
 }