O'Reilly logo

Microsoft Silverlight 5 Data and Services Cookbook by Kevin Dockx, Gill Cleeren

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating custom markup extensions

Applies to Silverlight 5

The binding statement we have been using up until now is a markup extension. Next to the binding markup extension, StaticResource is a second one that's built-in in Silverlight. Every time we see a notation that starts and ends with a curly brace ({}), we're working with a markup extension.

Up until Silverlight 4, only the built-in markup extensions could be used. Starting with Silverlight 5, it's now possible to create our own. In this recipe, we'll look at how we can create a markup extension that is capable of returning a translated text.

Getting ready

If you have been following along with the recipes of this chapter, you can continue using the recipe from the previous one. Alternatively, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required