aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/ui/Interfaces/Experimental/directoryView5.crow
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-10-26 08:23:19 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-10-26 08:23:19 +0200
commitc706b713a716e8b7fd29508ccf88e5de5041d1d4 (patch)
treec71fcc73e4f28c9248eece7df8a2c70225cc498c /Samples/common/ui/Interfaces/Experimental/directoryView5.crow
parent942155da0d427b7c4f98fa91da390461b5f1dd9f (diff)
rename all 'GraphicObject' to 'Widget', move to netcoreapp3.0 for crow library to use LoadContext for native dll resolutionFileDialogImprove
Diffstat (limited to 'Samples/common/ui/Interfaces/Experimental/directoryView5.crow')
-rw-r--r--Samples/common/ui/Interfaces/Experimental/directoryView5.crow74
1 files changed, 39 insertions, 35 deletions
diff --git a/Samples/common/ui/Interfaces/Experimental/directoryView5.crow b/Samples/common/ui/Interfaces/Experimental/directoryView5.crow
index 62b743ab..5b59a0f6 100644
--- a/Samples/common/ui/Interfaces/Experimental/directoryView5.crow
+++ b/Samples/common/ui/Interfaces/Experimental/directoryView5.crow
@@ -1,36 +1,40 @@
-<DirectoryView2 CurrentDirectory="/mnt/devel" Data="{/FileSystemEntries}">
- <Template>
- <VerticalStack>
- <Spinner Value="{²./IconSize}" SmallIncrement="1" LargeIncrement="1"/>
- <VerticalStack Background="DarkGrey" Margin="0">
- <Scroller Name="scroller1">
- <Table Columns=",20;Name,Stretched;Size,100;Accessed,Fit" Height="Fit" Width="Stretched" VerticalAlignment="Top"
- Name="ItemsContainer" Margin="0" Spacing="0" RowsMargin="0" ColumnSpacing="10"
- HorizontalLineWidth="0" VerticalLineWidth="1" />
- </Scroller>
+<VerticalStack>
+ <EnumSelector Caption="View Style" EnumValue="{²../dv.ViewStyle}"/>
+ <Spinner Value="{²../dv.IconSize}" SmallIncrement="1" LargeIncrement="1"/>
+ <DirectoryView2 Name="dv" CurrentDirectory="/mnt/devel" Data="{/FileSystemEntries}">
+ <Template>
+ <VerticalStack>
+ <Spinner Value="{²./IconSize}" SmallIncrement="1" LargeIncrement="1"/>
+ <VerticalStack Background="DarkGrey" Margin="0">
+ <Scroller Name="scroller1">
+ <Table Columns=",20;Name,Stretched;Size,100;Accessed,Fit" Height="Fit" Width="Stretched" VerticalAlignment="Top"
+ Name="ItemsContainer" Margin="0" Spacing="0" RowsMargin="0" ColumnSpacing="10"
+ HorizontalLineWidth="0" VerticalLineWidth="1" />
+ </Scroller>
+ </VerticalStack>
</VerticalStack>
- </VerticalStack>
- </Template>
- <ItemTemplate DataType="System.IO.DirectoryInfo">
- <TableRow Width="Stretched" Height="Fit" Focusable="true"
- BubbleEvents="All" Tooltip="{Name}"
- Selected="{Background=${ControlHighlight}}"
- Unselected="{Background=Transparent}">
- <Image Width="Stretched" Height="Stretched" Path="${FolderIcon}" Margin="0" />
- <Label Text="{Name}" Width="Fit" Font="sans,11" Margin="3"/>
- <Label Text="" Font="sans,9"/>
- <Label Text="{LastAccessTime}" Font="sans,9"/>
- </TableRow>
- </ItemTemplate>
- <ItemTemplate DataType="System.IO.FileInfo">
- <TableRow Width="Stretched" Height="Fit" Focusable="true"
- BubbleEvents="All" Tooltip="{Name}"
- Selected="{Background=${ControlHighlight}}"
- Unselected="{Background=Transparent}">
- <Image Width="Stretched" Height="Stretched" Path="${FileIcon}" Margin="2" />
- <Label Text="{Name}" Width="Fit" Font="sans,11" Margin="3"/>
- <Label Text="{Length}" Font="sans,9" TextAlignment="Right"/>
- <Label Text="{LastAccessTime}" Font="sans,9"/>
- </TableRow>
- </ItemTemplate>
-</DirectoryView2> \ No newline at end of file
+ </Template>
+ <ItemTemplate DataType="System.IO.DirectoryInfo">
+ <TableRow Width="Stretched" Height="Fit" Focusable="true"
+ BubbleEvents="All" Tooltip="{Name}"
+ Selected="{Background=${ControlHighlight}}"
+ Unselected="{Background=Transparent}">
+ <Image Width="Stretched" Height="Stretched" Path="${FolderIcon}" Margin="0" />
+ <Label Text="{Name}" Width="Fit" Font="sans,11" Margin="3"/>
+ <Label Text="" Font="sans,9"/>
+ <Label Text="{LastAccessTime}" Font="sans,9"/>
+ </TableRow>
+ </ItemTemplate>
+ <ItemTemplate DataType="System.IO.FileInfo">
+ <TableRow Width="Stretched" Height="Fit" Focusable="true"
+ BubbleEvents="All" Tooltip="{Name}"
+ Selected="{Background=${ControlHighlight}}"
+ Unselected="{Background=Transparent}">
+ <Image Width="Stretched" Height="Stretched" Path="${FileIcon}" Margin="2" />
+ <Label Text="{Name}" Width="Fit" Font="sans,11" Margin="3"/>
+ <Label Text="{Length}" Font="sans,9" TextAlignment="Right"/>
+ <Label Text="{LastAccessTime}" Font="sans,9"/>
+ </TableRow>
+ </ItemTemplate>
+ </DirectoryView2>
+</VerticalStack> \ No newline at end of file