06 September 2008

Most useful Silvelight techniques

I have the habit of taking extensive notes when I learn stuff so I know where to find stuff I've read and found interesting. This of course applies to Silverlight, so below are the most interesting Silverlight techniques I noted in the last month (except for the ones mentionned earlier). All or almost all of these came at some point from Silverlight Cream, so if you follow it carefully, you should know all of these already.

So here's how to...

Embed Silverlight in HTML
http://www.mydotnetplayground.nl/menu/

Navigate between XAML pages
http://www.flawlesscode.com/post/2008/03/Silverlight-2-Navigating-Between-Xaml-Pages.aspx
I use HTML overlay instead. Well, "instead" isn't the right word as those different techniques suit different uses. Both are worth knowing anyway.

Make the file smaller
http://blogs.msdn.com/delay/archive/2008/07/16/smaller-is-better-a-simple-step-to-shrink-the-download-size-of-silverlight-2-applications.aspx

Go full Screen

http://geekswithblogs.net/SilverBlog/archive/2008/06/10/full-screen-mode-in-silverlight-2.0-beta-2-applications.aspx
From my experience, it doesn't work in Firefox.

Show a Splash Screen
http://agkdesign.wordpress.com/2008/08/05/splash-screenloader-for-silverlight-appz/
(However, the author admits it doesn't always work.)

Resize the Silverlight Application
- two different techniques
http://msdn.microsoft.com/en-us/library/cc189043(vs.95).aspxhttp://www.silverlightshow.net/items/Tip-Resizing-the-Silverlight-object-from-the-Silverlight-application.aspx
I tested the second one and it works great.

Drag'n'Drop
http://simplesilverlight.wordpress.com/2008/08/13/drag-and-drop-silverlight-example/
So simple and my boss was impressed. Great article.

Create reusable animations
http://www.codeproject.com/KB/silverlight/AgDynAnimations.aspx
This article helped me when enormously when I was creating animations I had to modify at runtime (thought it's not exactly about it).

Access the HTML DOM from managed code
http://silverlight.net/quickstarts/Dom/DomAccess.aspx
A must-know for HTML Overlay.

3 comments:

  1. Regarding the full screen mode in Firefox, try http://silverlight.net/forums/t/12995.aspx - you just need to rename / delete a file for SL2 B2.

    ReplyDelete
  2. hehe i will fix it soon, been very busy on a sweet new project! Shall be pretty awesome I hope..

    ReplyDelete
  3. Hi there, I know it's been a while since this was posted, but I am writing a new post for Silverzine.com that will cover everything about loaders and splash screens for applications...

    ReplyDelete