DirectoryStyle class

Build 1501 on 14/Nov/2017  This topic last edited on: 22/Mar/2016, at 16:29

Description

Defines a single directory style within DirectoryStyleList of the parent BaseQuery.

Members

NameName of the directory style, unique at the level of the parent DirectoryStyleList.
DescriptionOptional description.
ContextMenuName of the context menu to call with right-click. If unspecified, the ResultListPopup menu is called.
HeightHeight. Put "1" for list directory style, and any other reasonable value for grid directory style
WidthPut "-1" for list directory styles, and any other reasonable value for grid directory style
MinimumDetailThe grid size when the slider, dragged left, switches to the previous directory style (if any)
DefaultDetailThe default grid size when you display the directory
MaximumDetailThe grid size when the slider, dragged right, switches to the next directory style (if any).
RefreshOptionsEnable alerts or triggers settings.
StepDetailThe steps for any dragging of the slider.
SortListList of sort orders.
ColStyleColumns.

Example

directorystyle

Distinguishing between list and grid directory styles

For the list type of directory styles, the typical statement is:

<DirectoryStyle Name="List" Description="" Height="1" Width="-1">

or you may also skip the Description attribute:

<DirectoryStyle Name="List" Height="1" Width="-1">

For the grid type of directory styles, the values for Height and Width are sensibly larger:

<DirectoryStyle Name="Grid_Small" Height="220" Width="200">

Should a list directory style automatically switch to another one when user drags a scale slider, the statement might be:

<DirectoryStyle Name="List" Description="" Height="1" Width="-1" MinimumDetail="10" DefaultDetail="20" MaximumDetail="30">

This assumes there's more than one directory style defined in the similar way.

Should a grid directory style automatically switch to another one when user drags a scale slider, the statement might be:

<DirectoryStyle Name="Grid small" Description="" MinimumDetail="40" DefaultDetail="80" MaximumDetail="150">