Colum style for Words/Lines columns

Build 1501 on 14/Nov/2017  This topic last edited on: 6/Sep/2016, at 13:33

This column style displays article (body) or wire story words, and also the height in lines of article body text:

       <ColStyle Name="Wrd" Width="60" Height="0" SortName="Words">

         <CellTemplate ObjectTypeName="article">

           <TextBlock VerticalAlignment="Top"

                HorizontalAlignment="Center"

                Text="{Binding Path=[article.bodyNWords]}"/>

         </CellTemplate>

         <CellTemplate ObjectTypeName="story">

           <TextBlock VerticalAlignment="Top"

                HorizontalAlignment="Center"

                Text="{Binding Path=[story.nWords]}"/>

         </CellTemplate>

       </ColStyle>

 

       <ColStyle Name="Ln" Width="60" Height="0" SortName="Lines">

         <CellTemplate ObjectTypeName="article">

           <TextBlock VerticalAlignment="Top"

                HorizontalAlignment="Center"

                Text="{Binding Path=[article.bodyNLines]}"/>

         </CellTemplate>

       </ColStyle>