ListViewItem selection

Jun 30, 2010 at 1:50 PM
Edited Jun 30, 2010 at 2:08 PM
Actually, when I try select some item of my ListView It just happen I click on text of a row. If I click in some part of the row that don´t have text selection doesn´t happen. So, I did the follow changes on ListViewItem style of ExpressionDark.xaml theme.

<Grid Margin="2,0,2,0" Background="Transparent">
      <Rectangle x:Name="Background" IsHitTestVisible="False" Opacity="0.25" Fill="{StaticResource NormalBrush}" RadiusX="1" RadiusY="1"/>
    <Rectangle x:Name="HoverRectangle" IsHitTestVisible="False" Opacity="0" Fill="{StaticResource NormalBrush}" RadiusX="1" RadiusY="1"/>
    <Rectangle x:Name="SelectedRectangle" IsHitTestVisible="False" Opacity="0" Fill="{StaticResource SelectedBackgroundBrush}" RadiusX="1" RadiusY="1"/>
    <GridViewRowPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Margin="0,2,0,2" VerticalAlignment="Stretch" />

I just include Background="Transparent" and problem was solved.