bin/ViewDefinition.ps1xml
<Configuration>
<ViewDefinitions> <View> <Name>DropboxView</Name> <ViewSelectedBy> <TypeName>DropNet.Models.MetaData</TypeName> </ViewSelectedBy> <TableControl> <TableHeaders> <TableColumnHeader> <Label>LastWriteTime</Label> <Width>25</Width> <Alignment>right</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Length</Label> <Width>10</Width> <Alignment>right</Alignment> </TableColumnHeader> <TableColumnHeader /> </TableHeaders> <TableRowEntries> <TableRowEntry> <TableColumnItems> <TableColumnItem> <ScriptBlock> [String]::Format("{0,10} {1,8}", $_.ModifiedDate.ToString("d"), $_.ModifiedDate.ToString("t")) </ScriptBlock> </TableColumnItem> <TableColumnItem> <ScriptBlock> if ($_.Is_Dir) {""} else {$_.Bytes} </ScriptBlock> </TableColumnItem> <TableColumnItem> <PropertyName>Name</PropertyName> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> </ViewDefinitions> </Configuration> |