aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/CrowIDE/ui/TreeExpandable.template
diff options
context:
space:
mode:
Diffstat (limited to 'Samples/CrowIDE/ui/TreeExpandable.template')
-rw-r--r--Samples/CrowIDE/ui/TreeExpandable.template17
1 files changed, 17 insertions, 0 deletions
diff --git a/Samples/CrowIDE/ui/TreeExpandable.template b/Samples/CrowIDE/ui/TreeExpandable.template
new file mode 100644
index 00000000..f945f781
--- /dev/null
+++ b/Samples/CrowIDE/ui/TreeExpandable.template
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<VerticalStack>
+ <Border Style="TreeItemBorder" >
+ <HorizontalStack Spacing="5" Focusable="true" MouseDoubleClick="./onClickForExpand">
+ <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.folder.svg" SvgSub="{./IsExpanded}"/>
+ <Label Text="{./Caption}"/>
+ </HorizontalStack>
+ </Border>
+ <Container Name="Content" Visible="false"/>
+</VerticalStack>