aboutsummaryrefslogtreecommitdiffstatsci
path: root/Tests/Interfaces/Unsorted/testTreeView.crow
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-08-04 13:12:30 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2016-08-04 14:29:18 +0200
commit3a01c455e09af25109239ab7ca32e66ea1ebc99b (patch)
tree27a7c6923c7285d1a8432ae393c8a5fb8981a28d /Tests/Interfaces/Unsorted/testTreeView.crow
parentb24819ffb8f629fb0ed70064f90357a42653ae5d (diff)
* Tests.csproj:
* BasicTests.cs: * TreeView.crow: * welcome.crow: * test4.crow: * testWindow2.goml: * testTreeView.crow: * testDirViewer.crow: update tests * Interface.cs: * OpenTKGameWindow.cs: perf measures * IMLStream.cs: datas prop * TemplatedControl.cs: ItemTemplate * ListBox.cs: thread sync nouveau fichier : Tests/test.style
Diffstat (limited to 'Tests/Interfaces/Unsorted/testTreeView.crow')
-rwxr-xr-xTests/Interfaces/Unsorted/testTreeView.crow37
1 files changed, 36 insertions, 1 deletions
diff --git a/Tests/Interfaces/Unsorted/testTreeView.crow b/Tests/Interfaces/Unsorted/testTreeView.crow
index 9504c958..c998af39 100755
--- a/Tests/Interfaces/Unsorted/testTreeView.crow
+++ b/Tests/Interfaces/Unsorted/testTreeView.crow
@@ -1,2 +1,37 @@
<?xml version="1.0"?>
-<TreeView Height="400" Width="200" Data="{List2}" ItemTemplate="#Crow.Templates.TreeItem.crow"/> \ No newline at end of file
+<TreeView Height="90%" Width="90%" Data="{CurDirectory}">
+ <ItemTemplate DataType="System.IO.FileInfo">
+ <Label Background="Mantis" Text="{}" Width="Stretched"/>
+<!-- <Expandable Caption="{}">
+ <Template>
+ <Border BorderWidth="1" Foreground="LightGray" Height="{../HeightPolicy}" Width="{../WidthPolicy}"
+ MouseClick="../onMouseClick">
+ <VerticalStack Height="{../../HeightPolicy}" Width="{../../WidthPolicy}">
+ <HorizontalStack Spacing="1" Height="Fit" Width="{../../../WidthPolicy}">
+ <Image Margin="2" Width="12" Height="12" Path="{../../../../Image}" SvgSub="{../../../../SvgSub}"/>
+ <Label Text="{../../../../Caption}" Width="{../../../../WidthPolicy}"/>
+ </HorizontalStack>
+ <Container Name="Content" Visible="false" Height="{../../../HeightPolicy}" Width="{../../../WidthPolicy}"/>
+ </VerticalStack>
+ </Border>
+ </Template>
+ </Expandable>-->
+ </ItemTemplate>
+ <ItemTemplate DataType="System.IO.DirectoryInfo" Data="GetFileSystemInfos">
+ <Expandable Caption="{Name}" >
+ <Template>
+ <VerticalStack Height="{../HeightPolicy}" Width="{../WidthPolicy}">
+ <HorizontalStack Spacing="1" Height="-1" Width="{../../WidthPolicy}">
+ <Image Margin="2" Width="12" Height="12"
+ Visible="{../../../HasContent}"
+ Path="{../../../Image}"
+ SvgSub="{../../../IsExpanded}"/>
+ <Label Text="{../../../Caption}" Width="{../../../WidthPolicy}"/>
+ </HorizontalStack>
+ <Container Name="Content" Visible="false"
+ Height="{../../HeightPolicy}" Width="{../../WidthPolicy}"/>
+ </VerticalStack>
+ </Template>
+ </Expandable>
+ </ItemTemplate>
+</TreeView> \ No newline at end of file