Welcome to Pete Brown's 10rem.net

First time here? If you are a developer or are interested in Microsoft tools and technology, please consider subscribing to the latest posts.

You may also be interested in my blog archives, the articles section, or some of my lab projects such as the C64 emulator written in Silverlight.

(hide this)

Monthly Archives:

  • Silverlight 3 – Perspective 3d Transforms – PlaneProjection

    One of the most commonly requested features for Silverlight is some sort of 3d support. Within that, what many folks have expressed real interest in is the ability to do a perspective / non-affine transform of objects in space. Well, the Silverlight team delivered on that one for sure. Not only do we have the perspective transform (which could have been accomplished using shaders or the new bit...

  • Silverlight 3 – The Bitmap API / WriteableBitmap

    Silverlight 3 introduces the new Bitmap API useful for accomplishing three primary goals:Creation of a bitmap completely from scratch, pixel-by-pixelClient-side manipulation of an image loaded from your server or the local machineRendering of a portion of the visual tree to bitmap to perform screen-shot like functionality (or improve performance by pre-rendering and caching elements in certain ...

  • Silverlight 3 – BasedOn Styles

    Silverlight 3 now includes Based-on styles for cascading/inheriting styles. You’ll find this extremely useful when you need to create, say, several different buttons that share the same control template and several style properties, but change a minor detail like the background and foreground color. More generically, you can also use this to standardize fonts and colors throughout an appl...

  • Silverlight 3 – Taking Silverlight Out of the Browser

    One of the long-anticipated new features of Silverlight is the ability to take applications out of browser, online or offline.in Silverlight 3, it couldn’t be easier. Simply crack open the AppManifest.xml and uncomment the markup that allows for taking your app offline.<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment" xmlns:x="http://s...

  • Silverlight 3 – UI Element to Element Binding

    Silverlight 3 now allows UI elements to bind to each other’s properties. This is something WPF folks are pretty used to, but is new to the Silverlight world.Element Binding is very simple to use. As of this writing, there are some restrictions as to what you can bind to (for example, Transforms were not supported at this time), but this will save a ton of the glue/proxy code many of us ha...

  • Silverlight 3 – Creating Video from Raw Bits using a MediaStreamSource

    There are a number of ways to get pixels on the screen in Silverlight 3. One you may not have considered, especially with the new Bitmap API being an otherwise obvious choice, is the newly enhanced MediaStreamSource API The MediaStreamSource API was available in Silverlight 2, but it required you to transcode into a supported format. The new version of the API lets you create raw vide...

  • Silverlight 3 – Drop Shadows and Glows with Pixel Shaders

    Among the many enhancements in Silverlight 3 is the addition of Pixel Shaders. One of the shaders that is likely to be used most is the simple drop shadow. Like all Silverlight Pixel Shaders, the drop shadow has some little things you need to be aware of before you go and apply it to your controls.First, if you’re going to be animating the thing you’re applying the shader to, do som...

  • Announcing Silverlight 3! SL3 Post Index

    For those of you watching the agenda for MIX09, the announcement of Silverlight 3 probably didn’t come as a huge surprise. However, I bet hardly anyone expected the enormous number of new features that have been announced for Silverlight 3. Here are just a few of the new features along with links to my posts covering them:Core Application Platform FeaturesOffline and Out of Browser Suppor...