aboutsummaryrefslogtreecommitdiffstatsci
path: root/CrowIDE/ui/ProjectTree.template
blob: 34a5cc840fe00a3e0e7b3abfeb52f9cfc3e4f2f8 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?xml version="1.0"?>
<ItemTemplate>
	<Label Text="{}" Background="DarkRed" Foreground="White"/>
</ItemTemplate>
<ItemTemplate DataType="CrowIDE.Project" Data="RootItems" DataTest="Type">
	<Expandable Caption="{Name}" ContextCommands="{Commands}" >
		<Template>
			<VerticalStack>
				<Border CornerRadius="2" Margin="0" Height="Fit" MouseDoubleClick="./onClickForExpand"						
						Foreground="Transparent"
						MouseEnter="{Foreground=DimGray}"
						MouseLeave="{Foreground=Transparent}">
					<HorizontalStack Spacing="1">
						<Image Margin="1" Width="9" Height="9" Focusable="true" MouseDown="./onClickForExpand"
							Path="{./Image}"
							Visible="{./IsExpandable}"
							SvgSub="{./IsExpanded}"
							MouseEnter="{Background=LightGray}"
							MouseLeave="{Background=Transparent}"/>
						<Image Margin="1" Width="14" Height="14"
							Path="#Crow.Icons.crowproj.svg"/>
						<GraphicObject Width="2" Height="9" Background="Green" Visible="{IsStartupProject}"/>
						<Label Text="{./Caption}"/>
					</HorizontalStack>
				</Border>
				<Container Name="Content" Visible="false"/>
			</VerticalStack>
		</Template>
		<HorizontalStack Height="Fit">
			<GraphicObject Width="8" Height="10"/>
			<VerticalStack Height="Fit" Name="ItemsContainer"/>
		</HorizontalStack>
	</Expandable>
</ItemTemplate>
<ItemTemplate DataType="ReferenceGroup" Data="ChildNodes" DataTest="Type">
	<Expandable Caption="{DisplayName}" Template="#Crow.TreeExpandable.template" >
		<HorizontalStack Height="Fit">
			<GraphicObject Width="8" Height="10"/>
			<VerticalStack Height="Fit" Name="ItemsContainer"/>
		</HorizontalStack>
	</Expandable>
</ItemTemplate>
<ItemTemplate DataType="VirtualGroup" Data="ChildNodes" DataTest="Type">
	<Expandable Caption="{DisplayName}" Template="#Crow.TreeExpandable.template" >
		<HorizontalStack Height="Fit">
			<GraphicObject Width="8" Height="10"/>
			<VerticalStack Height="Fit" Name="ItemsContainer"/>
		</HorizontalStack>
	</Expandable>
</ItemTemplate>
<ItemTemplate DataType="Folder" DataTest="Type">
	<Border CornerRadius="2" Margin="0" Focusable="true"  Height="Fit" Width="Stretched" Foreground="Transparent"
			MouseEnter="{Foreground=DimGray}"
			MouseLeave="{Foreground=Transparent}">
		<HorizontalStack>
			<Image Margin="1" Width="14" Height="14"
				Path="#Crow.Icons.folder.svg"/>
			<Label Text="{DisplayName}" Width="Stretched"/>
		</HorizontalStack>
	</Border>
</ItemTemplate>
<ItemTemplate DataType="Reference" DataTest="Type">
	<Border CornerRadius="2" Margin="0" Focusable="true"  Height="Fit" Width="Stretched" Foreground="Transparent"
			MouseEnter="{Foreground=DimGray}"
			MouseLeave="{Foreground=Transparent}">
		<HorizontalStack>
			<Image Margin="1" Width="14" Height="14"
				Path="#Crow.Icons.assembly.svg"/>
			<Label Text="{DisplayName}" Width="Stretched"/>
		</HorizontalStack>
	</Border>
</ItemTemplate>
<ItemTemplate DataType="ProjectReference" DataTest="Type">
	<Border CornerRadius="2" Margin="0" Focusable="true"  Height="Fit" Width="Stretched" Foreground="Transparent"
			MouseEnter="{Foreground=DimGray}"
			MouseLeave="{Foreground=Transparent}">
		<HorizontalStack>
			<Image Margin="1" Width="14" Height="14"
				Path="#Crow.Icons.projectRef.svg"/>
			<Label Text="{DisplayName}" Width="Stretched"/>
		</HorizontalStack>
	</Border>
</ItemTemplate>
<ItemTemplate DataType="Compile" DataTest="Type">	
	<Border CornerRadius="2" Margin="0" Focusable="true"  Height="Fit" Width="Stretched" Foreground="Transparent"
			MouseEnter="{Foreground=DimGray}"
			MouseLeave="{Foreground=Transparent}">
		<HorizontalStack>			
			<Image Margin="1" Width="14" Height="14"
				Path="#Crow.Icons.file.svg"/>
			<Label Text="{DisplayName}" Width="Stretched"/>
		</HorizontalStack>
	</Border>
</ItemTemplate>
<ItemTemplate DataType="EmbeddedResource" DataTest="Type">
	<Border CornerRadius="2" Margin="0" Focusable="true"  Height="Fit" Width="Stretched" Foreground="Transparent"
			MouseEnter="{Foreground=DimGray}"
			MouseLeave="{Foreground=Transparent}">
		<HorizontalStack>
			<Image Margin="1" Width="14" Height="14"
				Path="#Crow.Icons.file.svg"/>
			<Label Text="{DisplayName}" Width="Stretched"/>
		</HorizontalStack>
	</Border>
</ItemTemplate>
<ItemTemplate DataType="None" DataTest="Type">
	<Border CornerRadius="2" Margin="0" Focusable="true"  Height="Fit" Width="Stretched" Foreground="Transparent"
			MouseEnter="{Foreground=DimGray}"
			MouseLeave="{Foreground=Transparent}">
		<HorizontalStack>
			<Image Margin="1" Width="14" Height="14"
				Path="#Crow.Icons.file.svg"/>
			<Label Text="{DisplayName}" Width="Stretched"/>
		</HorizontalStack>
	</Border>
</ItemTemplate>