Kevin Kubasik’s Personal Blog
RSS icon Email icon Home icon
  • Making Silverlight Applications Available Offline

    Posted on March 12th, 2009 Kevin Kubasik 5 comments

    Ok, so I am a huge fan of the Silverlight development environment, C# and XAML represent one of the best UI design paradigms in computing today. Needless to say, I cannot thank the Moonlight project enough for bringing Silverlight support to Linux. The problem is, Microsoft either want’s me to develop a desktop application or a web-based application…. And only one of those is cross platform. Needless to say, if I restrict my WPF application to exclusively Silverlight-available libraries, I can get it to run on Linux. This is far from seamless, but in a pinch, it can be an option.

    However, a far better solution would be to load Silverlight in the browser, while offline. (Taking advantage of the Silverlight plugin and its packaging). Utilizing Google Gears, I was able to serve up the compiled .xap file and run the Silverlight app in Firefox without a connection to the server hosting it. I haven’t had a chance to test how IsolatedStorage behaves under these conditions, or how Moonlight handles it (couldn’t get the latest 2.0 to build), but here is the VS2008 solution I used to get everything working.

    Offline Silverlight Via Gears Demo

     

    5 responses to “Making Silverlight Applications Available Offline”

    1. This is absolutely brilliant!

      Someone also wrote a .NET binding to Google Gears so Silverlight applications can use the SQL storage on it.

    2. [...] Keniv Kubasik: Making Silverlight Applications Available Offline [...]

    3. I think I’d go nuts debugging moonlight if I couldn’t do it via local file loading…

    4. Really? I would love to play with that more, does anyone want to share a link? I wanna add it to the post for continuity.

    5. hello,
      I am looking forward to use silverlight technology in my web site…..is there any tutorial that can help me do that?

    Leave a reply