tags:

views:

17

answers:

1

I can see how to apply a text decoration to a GridViewColumn.

<GridViewColumn Header="Tool" >
   <GridViewColumn.CellTemplate>
      <DataTemplate>
         <TextBlock Text="{Binding Path=Entity.ToolId}" TextDecorations="{Binding Path=TextDecoration}" />
      </DataTemplate>
   </GridViewColumn.CellTemplate>
</GridViewColumn>

But if I want the TextDecoration to apply to the entire row (in my case a strikethrough), then I have to duplicate the above code to every GridViewColumn.

What I can not figure out is how to apply the TextDecoration to the entire listview item possibly via the ItemContainerStyle.

Can anyone give me a head up on how this could be done?

A: 

use GridViewRow.CellTemplate

Bernd Kopp