In this task you will learn how to change a style of the date/time column. In this example we choose the <BaseQuery Name="Fred4Pages" in the FRED4_Config.xml configuration file. |
You will be able to perform this task only if: •You already opened the fred4_config.xml file as explained in TASK: Open for editing one or more files with directory styles, ordered the view as explained in TASK: Display an ordered view of directory style elements, and located the <DirectoryStyle Name="List" under the <BaseQuery Name="Fred4Pages". |
1.Expand the <DirectoryStyle Name="List" element so you see all its elements collapsed: 2.Expand the Modified column and look at it: 3.Change it into <ColStyle Name="Modified" Height="0" SortName="Modified"> <CellTemplate> <TextBlock Text="{Binding Path=[page.modifiedDate], Converter={StaticResource StringFormatValueConverter}, ConverterParameter=\{0:g\}}}"/> </CellTemplate> </ColStyle> 4.Save changes and import them in database as explained in TASK: Save changes and import them in database. 5.Restart Fred and then look at the navigator on the Pages main tab: the new date/time is an absolute and not a relative value. |
See also