This project has moved. For the latest updates, please go here.

WPF EventSetter how to use in MVVM Caliburn

Apr 15, 2011 at 5:15 AM

Now,i want to open a new Window by DoubleClick ListBoxItem not ListBox's Header.so i use this code blew

<ListBox>
    ....
   
<ListBox.ItemContainerStyle>
       
<Style TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource {x:Type ListBoxItem}}">
           
<EventSetter Event="MouseDoubleClick" Handler="ListBoxItem_MouseDoubleClick"/>
       
</Style>
   
</ListBox.ItemContainerStyle>
</ListBox>
but i use MVVM and Caliburn,no codebehide.so how to use Caliburn to solve it.