diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-05 07:05:13 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-05 07:05:13 +0200 |
| commit | e9963abca14fbad8ff6c215e5c9d6b45652b38dc (patch) | |
| tree | fa1b55a3bd76257c01849e48f97b3d955012cece /Tests/Interfaces/Unsorted/testTreeView.crow | |
| parent | 47dad629d4ff744071f06a342f5f2eabaa879d71 (diff) | |
* ListBox.cs:
* TemplatedControl.cs: set ItemTemplate as public
* IMLStream.cs: copy ItemTemplates in tree hierarchy
* TreeView.crow: add scrolling
* treeList.crow: simple list template for tree children
* testTreeView.crow: update test
* Tests.csproj: update tests
Diffstat (limited to 'Tests/Interfaces/Unsorted/testTreeView.crow')
| -rwxr-xr-x | Tests/Interfaces/Unsorted/testTreeView.crow | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/Tests/Interfaces/Unsorted/testTreeView.crow b/Tests/Interfaces/Unsorted/testTreeView.crow index c3bfabc6..ca5ae138 100755 --- a/Tests/Interfaces/Unsorted/testTreeView.crow +++ b/Tests/Interfaces/Unsorted/testTreeView.crow @@ -1,27 +1,13 @@ <?xml version="1.0"?> <TreeView Height="90%" Width="90%" Data="{CurDirectory}"> <ItemTemplate DataType="System.IO.FileInfo"> - <Label Background="Mantis" Text="{Name}" 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>--> + <Label Text="{Name}" Width="Stretched"/> </ItemTemplate> <ItemTemplate DataType="System.IO.DirectoryInfo" Data="GetFileSystemInfos"> <Expandable Caption="{Name}" > <Template> <VerticalStack Height="{../HeightPolicy}" Width="{../WidthPolicy}"> - <HorizontalStack Spacing="1" Height="-1" Width="{../../WidthPolicy}"> + <HorizontalStack Spacing="1" Height="Fit" Width="{../../WidthPolicy}"> <Image Margin="2" Width="12" Height="12" Visible="{../../../HasContent}" Path="{../../../Image}" @@ -29,10 +15,14 @@ <Label Text="{../../../Caption}" Width="{../../../WidthPolicy}"/> </HorizontalStack> <Container Name="Content" Visible="false" - Height="{../../HeightPolicy}" Width="{../../WidthPolicy}"/> + Height="{../../HeightPolicy}" Width="{../../WidthPolicy}"/> </VerticalStack> </Template> - <ListBox Name="List" Height="Fit" Width="{../WidthPolicy}" /> + <HorizontalStack Height="Fit" Width="{../WidthPolicy}"> + <GraphicObject Width="12" Height="10"/> + <ListBox Name="List" Height="Fit" Width="{../../WidthPolicy}" + Template="#Tests.Interfaces.treeList.crow" /> + </HorizontalStack> </Expandable> </ItemTemplate> </TreeView>
\ No newline at end of file |