Beispiel #1
0
 private void SwapTextColorToBase()
 {
     foreach (TextBlock TB in TextBlocks)
     {
         TB.BeginStoryboard((Storyboard)TryFindResource("ForegroundColorToActiveST"));
     }
 }
Beispiel #2
0
 private void SwapTextColorToDark()
 {
     foreach (TextBlock TB in TextBlocks)
     {
         if ((TB.Tag as string) == "Black")
         {
             TB.BeginStoryboard((Storyboard)TryFindResource("ForegroundColorToBlackST"));
         }
         else
         {
             TB.BeginStoryboard((Storyboard)TryFindResource("ForegroundColorToInactiveST"));
         }
     }
 }