diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-06 17:48:03 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-06 17:48:03 +0200 |
| commit | c45ce80e0e4298afcbeee9215ee2d1d30c4c3be8 (patch) | |
| tree | ec659a28153b9df8406736d9f8df6ee255b8cb7e /Tests/Interfaces/Unsorted/testTreeView.crow | |
| parent | f42cabddc008529eddc0a43cad3be2b39b6790ee (diff) | |
* Crow.csproj:
* Label.cs: update
* GraphicObject.cs: key up
* ListBox.cs: IMLStream instanciing
* PrivateContainer.cs: Clear child Changes
* Scroller.cs: scroller have VerticalSrcrolling by default
* TemplatedControl.cs: remove unused hostClass attribute
* IMLStream.cs: IMLStream instance and source properties
* Interface.cs: removed unused hostClass
Only putOnTop Window widget when focused
KeyboardState key up and down
* TreeView.crow: no border in default template
* BasicTests.cs: IMLEditor
PropLessBinding test
* Tests.csproj:
* 2.crow:
* 0.crow:
* test5.crow:
* 2.crow:
* testTreeView.crow: update tests
* Bindings.cs:
* MemberReference.cs:
* CompilerServices.cs: property less bindings debug
Diffstat (limited to 'Tests/Interfaces/Unsorted/testTreeView.crow')
| -rwxr-xr-x | Tests/Interfaces/Unsorted/testTreeView.crow | 80 |
1 files changed, 39 insertions, 41 deletions
diff --git a/Tests/Interfaces/Unsorted/testTreeView.crow b/Tests/Interfaces/Unsorted/testTreeView.crow index 5873e619..3ec7ce6a 100755 --- a/Tests/Interfaces/Unsorted/testTreeView.crow +++ b/Tests/Interfaces/Unsorted/testTreeView.crow @@ -1,43 +1,41 @@ <?xml version="1.0"?> -<HorizontalStack> - <TreeView IsRoot="true" Name="treeView" Height="100%" Width="40%" Data="{CurDirectory}" Background="DimGray"> - <ItemTemplate DataType="System.IO.FileInfo"> - <HorizontalStack Focusable="true" Height="Fit" Width="Stretched" Background="{../Background}" > - <Image Margin="2" Width="14" Height="14" - Path="#Crow.Images.Icons.file.svg"/> - <Label Text="{Name}" Width="Stretched" - MouseEnter="{Background=hgradient|0:BlueCrayola|1:Transparent}" - MouseLeave="{Background=Transparent}"/> +<TreeView IsRoot="true" Name="treeView" Data="{CurDirectory}" Background="DimGray"> + <ItemTemplate DataType="System.IO.FileInfo"> + <HorizontalStack Focusable="true" Height="Fit" Width="Stretched" Background="{../Background}" > + <Image Margin="2" Width="14" Height="14" + Path="#Crow.Images.Icons.file.svg"/> + <Label Text="{Name}" Width="Stretched" + MouseEnter="{Background=hgradient|0:BlueCrayola|1:Transparent}" + MouseLeave="{Background=Transparent}"/> + </HorizontalStack> + </ItemTemplate> + <ItemTemplate DataType="System.IO.DirectoryInfo" Data="GetFileSystemInfos"> + <Expandable Caption="{Name}" > + <Template> + <VerticalStack Height="{./HeightPolicy}" Width="{./WidthPolicy}"> + <HorizontalStack Spacing="1" Height="Fit" Width="{./WidthPolicy}" + MouseEnter="{Background=hgradient|0:BlueCrayola|1:Transparent}" + MouseLeave="{Background=Transparent}"> + <Image Margin="2" Width="12" Height="12" + Visible="{./HasContent}" + Path="{./Image}" + SvgSub="{./IsExpanded}"/> + <Image Margin="2" Width="14" Height="14" + Path="#Crow.Images.Icons.folder.svg"/> + <Label Text="{./Caption}" Width="{./WidthPolicy}"/> + </HorizontalStack> + <Container Name="Content" Visible="false" + Height="{./HeightPolicy}" Width="{./WidthPolicy}"/> + </VerticalStack> + </Template> + <HorizontalStack Height="Fit" Width="{./WidthPolicy}"> + <GraphicObject Width="12" Height="10"/> + <TreeView Name="List" Height="Fit" Width="{./WidthPolicy}"> + <Template> + <VerticalStack Height="Fit" Width="{../WidthPolicy}" Name="List"/> + </Template> + </TreeView> </HorizontalStack> - </ItemTemplate> - <ItemTemplate DataType="System.IO.DirectoryInfo" Data="GetFileSystemInfos"> - <Expandable Caption="{Name}" > - <Template> - <VerticalStack Height="{./HeightPolicy}" Width="{./WidthPolicy}"> - <HorizontalStack Spacing="1" Height="Fit" Width="{./WidthPolicy}" - MouseEnter="{Background=hgradient|0:BlueCrayola|1:Transparent}" - MouseLeave="{Background=Transparent}"> - <Image Margin="2" Width="12" Height="12" - Visible="{./HasContent}" - Path="{./Image}" - SvgSub="{./IsExpanded}"/> - <Image Margin="2" Width="14" Height="14" - Path="#Crow.Images.Icons.folder.svg"/> - <Label Text="{./Caption}" Width="{./WidthPolicy}"/> - </HorizontalStack> - <Container Name="Content" Visible="false" - Height="{./HeightPolicy}" Width="{./WidthPolicy}"/> - </VerticalStack> - </Template> - <HorizontalStack Height="Fit" Width="{./WidthPolicy}"> - <GraphicObject Width="12" Height="10"/> - <TreeView Name="List" Height="Fit" Width="{./WidthPolicy}" - Template="#Tests.Interfaces.treeList.crow" /> - </HorizontalStack> - </Expandable> - </ItemTemplate> - </TreeView> - <Border Width="60%"> - <Label Text="{../../treeView.SelectedItem}"/> - </Border> -</HorizontalStack>
\ No newline at end of file + </Expandable> + </ItemTemplate> +</TreeView> |