Including workstate in a listing

Build 1501 on 14/Nov/2017  This topic last edited on: 21/Mar/2016, at 19:02

Workstate id

       <ColStyle Name="Id" Width="200" Height="0" SortName="Id">

         <CellTemplate>

           <TextBlock Height="Auto" HorizontalAlignment="Left" Text="{Binding Path=[workstate.id]}" />

         </CellTemplate>

       </ColStyle>

Workstate name

       <ColStyle Name="Name" Width="200" Height="0" SortName="Name">

         <CellTemplate>

           <TextBlock Height="Auto" HorizontalAlignment="Left" Text="{Binding Path=[workstate.name]}" />

         </CellTemplate>

       </ColStyle>

Workstate color

     <ColStyle Name="" Width="120" Height="0">

         <CellTemplate>

           <StackPanel Orientation="Horizontal">

             <Border

                 BorderThickness="1"

                 Width="24"

                 Height="12"

                 BorderBrush="Black"

                 Background="{Binding Path=[workstate.color], Converter={StaticResource ColorConverter}}"/>

             <TextBlock

                 Margin="2,0,0,0"

                 Text="{Binding Path=[workstate.color], Converter={StaticResource ColorConverter}}"

                 SnapsToDevicePixels="True"/>

           </StackPanel>

         </CellTemplate>

       </ColStyle>

Workstate locked status

       <ColStyle Name="L" Width="40" Height="0">

         <CellTemplate>

           <l:UnlockIcon ObjectId="{Binding Path=[workstate.id]}"

            CheckOutInfo="{Binding Path=[workstate:CheckOutInfo]}"

            Command="{x:Static l:Commands.ClickScript}"

            CommandParameter="Unlock"/>

         </CellTemplate>

       </ColStyle>