Example #1
0
 private SolidColorBrush GetBackgroundColor(int index, Enumerations.Theme theme)
 {
     if (theme == Enumerations.Theme.Dark)
     {
         if (index % 2 == 0)
         {
             return(new SolidColorBrush(Colors.Black));
         }
         else
         {
             return(new SolidColorBrush(Color.FromArgb(255, 30, 30, 30)));
         }
     }
     else
     {
         if (index % 2 == 0)
         {
             return(new SolidColorBrush(Colors.White));
         }
         else
         {
             return(new SolidColorBrush(Color.FromArgb(255, 230, 230, 230)));
         }
     }
 }
Example #2
0
 private SolidColorBrush GetForegroundColor(int index, Enumerations.Theme theme)
 {
     if (theme == Enumerations.Theme.Dark)
     {
         return(new SolidColorBrush(Colors.White));
     }
     else
     {
         return(new SolidColorBrush(Colors.Black));
     }
 }