Silverlight 1.1

Creating an XP Style WPF Button with Silverlight


Posted in:

Way back in October I posted a tutorial on how to use custom controls in Silverlight. In that post I used an example button that looks like the Windows XP WPF button. Since then a couple of people have expressed interest in how to build that button. This tutorial is going to show exactly that.

Read More Icon Read More

Silverlight Tutorial - Using Isolated Storage


Posted in:

So, a little while back, we posted a little rant about how isolated storage in Silverlight is a great idea, but how its usefulness is extremely limited. And while that still is true, that doesn't stop the concept from being cool. So today we are going to take a look at how to write a Silverlight app that uses isolated storage.

Read More Icon Read More

How to Use Custom User Controls in Silverlight


Posted in:

Since Microsoft hasn't released an official library of controls for Silverlight, making and using your own is very important. This tutorial is going to show you how to import and add a custom control to your Silverlight application.

Read More Icon Read More

Silverlight Tutorial - Animating HTML Elements


Posted in:

Animation! And more animation! We sure do seem to love animation here at Switch On The Code - and really, I have no idea why. But as long as we keep coming up with cool concepts that deal with animation, we will continue to write about them. Today we are going to take a look at something a little bit weird - we are going to animate HTML elements using Silverlight. Thats right, you read that correctly - HTML elements, the stuff you would normally animate with some plain old javascript - perhaps even the Generic Animation javascript code. Why would you want to do this? I don't have any good reasons at the moment. But it does show off some of the capabilities of silverlight, and that is a good enough reason to write about it.

Read More Icon Read More

Silverlight Tutorial - Interaction With The DOM


Posted in:

Today we are going to take a look at directly manipulating the DOM on a webpage using Silverlight. We have other tutorials about Silverlight interacting with the webpage it is placed on, but in those tutorials we always communicate through some javascript functions on the page. Here, we will not be writing a single line of javascript - everything will be done in the Silverlight code-behind (which in this case will be C#).

Read More Icon Read More

Where is Silverlight's Isolated Storage Image Support?


Posted in:

Recently, we decided to write a tutorial on how to use Silverlight's isolated storage. In theory, isolated storage is a great feature that allows Silverlight to view offline content. In practice, however, you're pretty limited on what it can be used for.

Read More Icon Read More

How To Embed Silverlight Into a Webpage


Posted in:

Since we've started posting Silverlight tutorials, I've had to figure out how to get Silverlight applications embedded into our blog. Needless to say, I found the process a lot harder than it should be. Visual Studio provides a test page as part of a default Silverlight project, but what if you want to take the Silverlight application and put it in a blog post like we do? This tutorial will go through all code changes, files needed, and new code required to easily embed your Silverlight apps into existing webpages.

Read More Icon Read More

Silverlight Tutorial - Color Animations


Posted in:

In this tutorial, I'm going to show you how to use Silverlight's Storyboard and ColorAnimation XAML tags to create custom color animations. Color animations are commonly used on input controls like buttons to give visual feedback that the cursor is over the control or when the button has been pressed. This tutorial will show a couple of simple examples that can easily be extended to complex controls and animations.

Read More Icon Read More

Communicate Between Flex and Silverlight using Javascript


Posted in:

If Flex can communicate with Javascript and Silverlight can communicate with Javascript, it seems like there should be some sort of transitive rule that lets Flex communicate with Silverlight. Well there is, and this tutorial is going to show you how to use Javascript to communicate directly between a Flex application and a Silverlight application.

Read More Icon Read More

Silverlight and Javascript Interaction


Posted in:

Silverlight is a relatively new client side technology released by Microsoft, but already people are finding the need to communicate between their Silverlight applications and Javascript. This tutorial will go through all the code required to call Javascript functions from Silverlight and vice-versa.

Read More Icon Read More