aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/ui/Interfaces/Experimental/directoryView3.crow
blob: 1dd1d88d2e4752c3db54d7e20e9438cb110968e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<DirectoryView2 CurrentDirectory="/mnt/devel" Data="{/FileSystemEntries}">
	<Template>
		<VerticalStack>
			<Spinner Value="{²./IconSize}" SmallIncrement="1" LargeIncrement="1"/>
			<VerticalStack Background="Grey" Margin="5">
				<Scroller Name="scroller1">
					<Wrapper Orientation="Horizontal" Height="Stretched" Width="Fit" HorizontalAlignment="Left"
						Name="ItemsContainer" Margin="0" Spacing="2"/>
				</Scroller>
			</VerticalStack>
		</VerticalStack>
	</Template>
	<ItemTemplate DataType="System.IO.FileInfo">
		<ListItem Width="Fit" Height="Fit"
					BubbleEvents="All" Tooltip="{Name}"
					Selected = "{Background=${ControlHighlight}}"
					Unselected = "{Background=Transparent}">
			<HorizontalStack Spacing="5">
				<Image Margin="0"  Width="16" Height="16" Path="${FileIcon}" Scaled="true"/>
				<Label Text="{Name}"  Width="Fit" Font="sans,9" />
			</HorizontalStack>
		</ListItem>
	</ItemTemplate>
	<ItemTemplate DataType="System.IO.DirectoryInfo">
		<ListItem Width="Fit" Height="Fit"
					BubbleEvents="All" Tooltip="{Name}"
					Selected = "{Background=${ControlHighlight}}"
					Unselected = "{Background=Transparent}">
			<HorizontalStack Spacing="5">
				<Image Margin="0"  Width="16" Height="16" Path="${FolderIcon}" Scaled="true"/>
				<Label Text="{Name}"  Width="Fit" Font="sans,9"/>
			</HorizontalStack>
		</ListItem>
	</ItemTemplate>
</DirectoryView2>