aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/ui/Interfaces/Experimental/directoryView2.crow
blob: 9bfebe7264b97b6e2ec8788763ac58e0fe2cd062 (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
36
37
38
39
40
41
<VerticalStack>
	<EnumSelector Caption="View Style" EnumValue="{²../dv.ViewStyle}"/>
	<Spinner Value="{²../dv.IconSize}" SmallIncrement="1" LargeIncrement="1"/>
	<DirectoryView2 UseLoadingThread="false" Name="dv" CurrentDirectory="/mnt/devel" Data="{/FileSystemEntries}">
		<Template>
			<HorizontalStack Background="Grey" Margin="5">
				<Scroller Name="scroller1">
					<Wrapper Orientation="Vertical" Height="Fit" VerticalAlignment="Top"
						Name="ItemsContainer" Margin="0" Spacing="2"/>
				</Scroller>
				<ScrollBar Name="scrollbar1" Orientation="Vertical"
					Value="{²../scroller1.ScrollY}"	Maximum="{../scroller1.MaxScrollY}"
					CursorRatio="{../scroller1.ChildHeightRatio}"
					LargeIncrement="{../scroller1.PageHeight}" SmallIncrement="30"
					Width="14" />
			</HorizontalStack>
		</Template>
	<ItemTemplate DataType="System.IO.FileInfo">
		<ListItem Width="70" Height="60"
					BubbleEvents="All" Tooltip="{Name}"
					Selected = "{Background=${ControlHighlight}}"
					Unselected = "{Background=Transparent}">
			<VerticalStack>
				<Image Margin="8"  Width="Fit" Height="Stretched" Path="${FileIcon}" Scaled="true"/>
				<Label Text="{Name}" Background="Jet" Width="Stretched" TextAlignment="Center" Multiline="true" Font="sans,9" />
			</VerticalStack>
		</ListItem>
	</ItemTemplate>
	<ItemTemplate DataType="System.IO.DirectoryInfo">
		<ListItem Width="90" Height="60"
					BubbleEvents="All" Tooltip="{Name}"
					Selected = "{Background=${ControlHighlight}}"
					Unselected = "{Background=Transparent}">
			<VerticalStack>
				<Image Margin="0"  Width="Fit" Height="Stretched" Path="${FolderIcon}" Scaled="true"/>
				<Label Text="{Name}" Background="Jet" Width="Stretched" TextAlignment="Center" Multiline="true" Font="sans,9"/>
			</VerticalStack>
		</ListItem>
	</ItemTemplate>
</DirectoryView2>
</VerticalStack>