blob: 8ffb17ba2c207f97c1b2e6c3b11532c58e046dfe (
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
|
<?xml version="1.0"?>
<ItemTemplate>
<Border DataSourceType="ProjectItem" Style="TreeItemBorder" ContextCommands="{Commands}" Focusable="true" MouseDown="onClick" MouseDoubleClick="onDoubleClick">
<Group>
<Widget Height="Stretched" Background="RoyalBlue" Visible="{IsSelected}"/>
<HorizontalStack>
<Widget Width="5" Height="5"/>
<Image Style="TreeIcon" Picture="{Icon}"/>
<Label Text="{DisplayName}" Width="Stretched"/>
</HorizontalStack>
</Group>
</Border>
</ItemTemplate>
<ItemTemplate DataType="Crow.Coding.Project" Data="RootItems" DataTest="Type">
<Expandable DataSourceType="Project" Caption="{Name}" ContextCommands="{Commands}" IsExpanded="{²IsExpanded}" MouseDoubleClick="/onClickForExpand">
<Template>
<VerticalStack>
<Border Style="TreeItemBorder" >
<HorizontalStack Spacing="1">
<Image Margin="1" Width="9" Height="9" Focusable="true" MouseDown="./onClickForExpand"
Path="{./Image}"
Visible="{./IsExpandable}"
SvgSub="{./IsExpanded}"
MouseEnter="{Background=LightGrey}"
MouseLeave="{Background=Transparent}"/>
<Image Style="TreeIcon"
Path="#Crow.Icons.crowproj.svg"/>
<Widget Width="4" Height="9" Background="Green" Visible="{IsStartupProject}"/>
<Label Text="{./Caption}"/>
</HorizontalStack>
</Border>
<Container Name="Content" Visible="false"/>
</VerticalStack>
</Template>
<HorizontalStack Height="Fit">
<Widget Width="8" Height="10"/>
<VerticalStack Height="Fit" Name="ItemsContainer"/>
</HorizontalStack>
</Expandable>
</ItemTemplate>
<ItemTemplate DataSourceType="ProjectNode" DataType="ReferenceGroup" Data="ChildNodes" DataTest="Type" >
<Expandable Caption="{DisplayName}" Template="#Crow.Coding.TreeExpandable.template" IsExpanded="{²IsExpanded}">
<HorizontalStack Height="Fit">
<Widget Width="8" Height="10"/>
<VerticalStack Height="Fit" Name="ItemsContainer"/>
</HorizontalStack>
</Expandable>
</ItemTemplate>
<ItemTemplate DataType="VirtualGroup" Data="ChildNodes" DataTest="Type">
<Expandable DataSourceType="ProjectNode" Caption="{DisplayName}" Template="#Crow.Coding.TreeExpandable.template" IsExpanded="{²IsExpanded}">
<HorizontalStack Height="Fit">
<Widget Width="8" Height="10"/>
<VerticalStack Height="Fit" Name="ItemsContainer"/>
</HorizontalStack>
</Expandable>
</ItemTemplate>
<ItemTemplate DataType="Folder" DataTest="Type">
<Border DataSourceType="ProjectNode" Style="TreeItemBorder" ContextCommands="{Commands}">
<HorizontalStack>
<Image Style="ProjTreeIcon"
Path="#Crow.Icons.folder.svg"/>
<Label Text="{DisplayName}" Width="Stretched"/>
</HorizontalStack>
</Border>
</ItemTemplate>
|