EXAMPLE 1
This column style displays the icon if an article is in editing by someone, and hovering over with mouse, displays what is in use and by whom.
<ColStyle Name="U" Width="30">
<CellTemplate>
<l:SubCheckOutIndicator
Value="{Binding Path=[article:SubCheckOutInfo]}">
<!--<TextBlock Text="*"/>-->
<l:ConfigIcon IconName="tlb_edit"/>
</l:SubCheckOutIndicator>
</CellTemplate>
</ColStyle>
EXAMPLE 2
This column style displays the icon if a page is in editing by someone, and hovering over with mouse, displays what is in use and by whom.
<ColStyle Name="In Use">
<CellTemplate>
<l:SubCheckOutIndicator
Value="{Binding Path=[page:SubCheckOutInfo]}"
HorizontalAlignment="Left">
<l:ConfigIcon IconName="t_user"/>
</l:SubCheckOutIndicator>
</CellTemplate>
</ColStyle>
EXAMPLE 3
This column style displays the layers 'in use' information if a page layer is in editing by someone. For the page layers not in use, it doesn't display anything, not wasting the screen space.
<ColStyle Name="In Use">
<CellTemplate>
<l:SubCheckOutControl
Style="{DynamicResource CompactSubCheckOut}"
Value="{Binding Path=[linkObject:SubCheckOutInfo]}"/>
</CellTemplate>
</ColStyle>
You need to add to the WinClientResources.xml the following lines in the <l:ConfigResourceDictionary Name="NormalListing" section:
<l:ConfigResourceDictionary Name="NormalListing"
........
<Style x:Key="CompactSubCheckOut" TargetType="{x:Type winUIControls:SubCheckOutControl}">
<Style.Resources>
<DataTemplate x:Key="compactDataTemplate">
<StackPanel>
<TextBlock TextBlock.Foreground="red">
<TextBlock.Text>
<MultiBinding StringFormat="{}{0} by {2} ">
<Binding Path="CheckOutObjectDesc"/>
<Binding Path="CodeName"/>
<Binding Path="UserDesc"/>
<Binding Path="ClientSpecDesc"/>
<Binding Path="Time"/>
<Binding Path="LoginGuid"/>
</MultiBinding>
</TextBlock.Text>
</TextBlock>
</StackPanel>
</DataTemplate>
</Style.Resources>
<Setter Property="CheckOutTemplate" Value="{StaticResource compactDataTemplate}"/>
</Style>