private void FavButton_Click(object sender, RoutedEventArgs e) { Radio.AddToFavorites(Radio.IsPlayingNow.Url); if (Radio.IsPlayingNow.Favorite == "0") { FavButton.Background = new ImageBrush { ImageSource = new BitmapImage(new Uri("C:\\Users\\User\\github\\eng71\\OOP\\RadioAppStarterCode\\RadioAppWPF\\UFav.png")) }; } else { FavButton.Background = new ImageBrush { ImageSource = new BitmapImage(new Uri("C:\\Users\\User\\github\\eng71\\OOP\\RadioAppStarterCode\\RadioAppWPF\\Fav.png")) }; } RefreshChanelsToUI(); }