private void SwapTextColorToBase() { foreach (TextBlock TB in TextBlocks) { TB.BeginStoryboard((Storyboard)TryFindResource("ForegroundColorToActiveST")); } }
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")); } } }