aboutsummaryrefslogtreecommitdiffstatsci
path: root/CrowIDE/ui/GTreeExplorer.crow
blob: b62b02a1725ab57cf1553637e0c1d6afa7e81ec5 (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
<?xml version="1.0"?>
<Window Caption="Graphic Tree" Width="20%" Height="70%" AlwaysOnTop="true">
	<VerticalStack>
		<Button Caption="Expand All" MouseClick="../treeView.onExpandAll_MouseClick"/>		
		<TreeView IsRoot="true" Name="treeView" Data="{GraphicTree}"
			SelectedItemChanged="GTView_SelectedItemChanged">
<!--			<Template>
				<HorizontalStack>
					<Scroller  Name="scroller1" Margin="1" VerticalScrolling="true"
						Background="{./Background}"
						ScrollY="{../scrollbar1.Value}">
						<VerticalStack
							Height="Fit" Name="ItemsContainer" Margin="0" VerticalAlignment="Top"/>
					</Scroller>
					<ScrollBar
						Name="scrollbar1"
						Value="{../scroller1.ScrollY}"
						Maximum="{../scroller1.MaximumScroll}"
						Width="12" Orientation="Vertical"/>
				</HorizontalStack>
			</Template>-->
			<ItemTemplate>
				<HorizontalStack Width="Stretched" Focusable="true">
					<Label Text="{Name}"
							MouseEnter="{Background=hgradient|0:BlueCrayola|1:Transparent}"
							MouseLeave="{Background=Transparent}"/>
				</HorizontalStack>
			</ItemTemplate>
			<ItemTemplate DataType="Crow.Group" Data="GetChildren"
				Path="#Crow.Coding.ui.GTreeExpITemp.crow"/>
			<ItemTemplate DataType="Crow.Container" Data="GetChildren"
				Path="#Crow.Coding.ui.GTreeExpITemp.crow"/>
			<ItemTemplate DataType="Crow.TemplatedContainer" Data="GetChildren"
				Path="#Crow.Coding.ui.GTreeExpITemp.crow"/>
			<ItemTemplate DataType="Crow.TemplatedGroup" Data="GetChildren"
				Path="#Crow.Coding.ui.GTreeExpITemp.crow"/>
		</TreeView>
	</VerticalStack>
</Window>