Silverlight MVVM ListBoxItem IsSelected

Posted by Lee on Stack Overflow See other posts from Stack Overflow or by Lee
Published on 2009-04-14T23:40:16Z Indexed on 2010/05/10 4:38 UTC
Read the original article Hit count: 342

Filed under:
|
|

I have a collection of ViewModels bound to a ListBox. I am trying to bind the IsSelected properties of each together. In WPF it works by setting the style:

<Style TargetType="{x:Type ListBoxItem}">
    <Setter Property="IsSelected" Value="{Binding Path=IsSelected, Mode=TwoWay}" />
</Style>

This does not work in Silverlight. How can I accomplish this?

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about mvvm