Silverlight 3 Binding to the Current Item in a Collection

Posted by rasx on Stack Overflow See other posts from Stack Overflow or by rasx
Published on 2010-04-04T07:00:51Z Indexed on 2010/04/04 7:03 UTC
Read the original article Hit count: 543

The Binding syntax, {Binding /}, works in WPF but does not work at all in Silverlight 3:

<ContentControl Content="{Binding MyCollection}">
    <ContentControl.ContentTemplate>
        <DataTemplate>
            <ContentControl Content="{Binding /}" />
        </DataTemplate>
    </ContentControl.ContentTemplate>
</ContentControl>

What's the way to approach this in Silverlight?

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about silverlight-3.0