How do you force Firefox to not cache or re-download a Silverlight XAP file?

The query string works perfectly, but I wouldn’t use DateTime.Now, because it forces the user to re-download the app every time. Instead, we use the following: protected void Page_Load(object sender, EventArgs e) { var versionNumber = Assembly.GetExecutingAssembly().GetName().Version.ToString(); this.myApp.Source += “?” + versionNumber; } This way all you have to do is increment the version number … Read more

Display GIF in a WP7 application with Silverlight

In fact, it’s working, but it lacks some documentation. After some troubles, here’s how to use it : reference ImageTools reference ImageTools.Controls reference ImageTools.IO.Gif Add namespace in xaml : xmlns:imagetools=”clr-namespace:ImageTools.Controls;assembly=ImageTools.Controls” And resources : <phone:PhoneApplicationPage.Resources> <imagetools:ImageConverter x:Key=”ImageConverter” /> </phone:PhoneApplicationPage.Resources> Then use the control with the converter : <imagetools:AnimatedImage Source=”{Binding ImageSource, Converter={StaticResource ImageConverter}}” /> Your ImageSource should … Read more