A quick look at Silverlight 3: Element to Element Data Binding

Something that I really like in WPF and I’ve missed in Silverlight is the ability to bind one UI element to another which often causes you to have to inject additional data classes purely to make databinding work.

I’m really glad to see this show up in Silverlight 3 so that I can write XAML like;

<MediaElement
        Source="silverlight.wmv"
        Volume="{Binding ElementName=slider, Path=Value, Mode=TwoWay}" />
    <Slider
        Grid.Row="1"
        Name="slider"
        Maximum="1"
        Minimum="0"
        Value="0.5" />

and there’s no code to write to get that stuff working – cool 🙂

This is one of a series of posts taking a quick look at Silverlight 3 – expect them to be a little “rough and ready” and that they’ll get expanded on as I’ve had more time to work with Silverlight 3.