I am working on a Windows Phone 7 app, and trying to change some of the properties/styles of a button when it is clicked.
I can change the Content with no problem, but I cannot change certain visual styles (background, font color, etc). Strangely, I am able to change OTHER button styles during the click event.
Ideas why? I've seen this thread which looks related, but not exactly what I'm trying to accomplish (not programmatic changes, but styling): Windows Phone 7 (WP7) Change a button's background color on click
private void pbMood_Click(object sender, RoutedEventArgs e)
{
AppMoods.NextMood();
pbMood.Content = AppMoods.CurrentMoodName;
SolidColorBrush sBrush = (SolidColorBrush)pbMood.Background;
pbMood.Background = GetColorFromHexa(AppMoods.CurrentMoodColor); // NO WORK
pbFavorites.Background = GetColorFromHexa(AppMoods.CurrentMoodColor); // WORK
}