public void ClearContent() { ProgressBar.Value = 0; if (ImageContent.Source != null) { var bitmap = ImageContent.Source as BitmapImage; bitmap.DownloadProgress -= Image_DownloadProgress; } ImageContent.DataContext = null; ImageContent.ClearValue(Image.SourceProperty); ImageContent.Visibility = Windows.UI.Xaml.Visibility.Collapsed; ImageContent.Height = 0; TextContent.ClearValue(TextBlock.TextProperty); }