Hi,
I have created an application in which an Image control displays the user profile picture that is saved for the user.
On a button click, a user control pops up, which has an image control displaying the same user profile picture.
If i change this picture, it successfuly gets updated in the storage but not on the image control of the user control.
This image control continues to show the previous image.
I have to do a F5 on the page for the image to be refreshed.
As a solution to this problem, i tried removing the caching as follows:
uri1 =
new Uri(@"http://" + current.Host.Source.DnsSafeHost + ":" + Convert.ToString(10000) + "/devstoreaccount1/images/" + "UserProfile_" + s.Value.Split('|').ElementAt(0));
BitmapImage
bi = new System.Windows.Media.Imaging.BitmapImage(uri1);
bi.CreateOptions =
BitmapCreateOptions.IgnoreImageCache;
lCommentItem.imgUser.Source = bi;
But this doesnt help!
Can anyone please help me on this?