Browse by Tags

All Tags » Tips and Tricks (RSS)

Skin your Silverlight 3 app with Implicit Style Manager

Silverlight 3 do not have implicit style like WPF or a Theming feature like ASP.NET which means you can’t [automatically] apply a Style to every Button of the app like in ASP.NET for example. In Silverlight 3 you need to explicitly set styles on every...

Update Out Of Browser (OOB) Silverlight apps

Once your Silverlight application installed on the local computer what happens if there is an update ? The local application is not updated automatically but you can check that in your code. The CheckAndDownloadUpdateAsync() method downloads the updated...

Debug Out Of Browser (OOB) Silverlight apps

An installed (OOB) Silverlight application is supposed to run the same as in browser, but sometimes you might want to debug it. First you could attach VS to the sllauncher.exe process, but there is easier: Run your application in the browser and install...

BulletedList in Silverlight

Today I wanted to add a bulleted list of text items in a xaml page, as there is no BulletedList control in Silverlight, you have to do it yourself. But I don’t need a databound list, just something simple in a TextBlock, so here is what I ended with,...

Tutorial: create a custom Silverlight Splash Screen

The first time a user visit the page which holds your Silverlight app, the browser needs to download the XAP file first, but sometimes this file can become large, so Silverlight automatically displays its default “loading screen”, also called a “Splash...

Migrate from Silverlight 2 to 3

Just a quick note on this as I still found people stuck with this error: Error: Unhandled Error in Silverlight 2 Application Code: 2106    Category: InitializeError       Message: Failed to load the application...

Silverlight EnableFramerateCounter parameter

EnableFramerateCounter is a parameter you can activate on the Silverlight Plug-in object. (For a comprehensive list of Silverlight param, see my previous post ). This boolean value indicates whether to display in the hosting browser's status bar the current...

Provide startup parameters to Silverlight with InitParams

I have been giving Silverlight trainings for a while now, and I found this to be a little known feature: the ability to provide Silverlight startup parameters with InitParams .   Pass startup parameters to your Silverlight app You pass the parameters...

Silverlight – Get Color from Hex

What if you want to get a Color from its hexa value (#FFBBCC88) ? Unfortunately Silverlight do not have the ColorTranslator class which allows you to do ColorTranslator.FromHtml("#FF1133") in ASP.NET. What we have is the Color.FromArgb() method...

Prevent a Silverlight animation from running twice

By default in Silverlight a user can launch the same animation several times, even if the animation is not finished. Side effects: the animation starts again and your code (if any) runs twice. Sometimes this can be annoying. Let’s say you have a button...
More Posts Next page »