aboutsummaryrefslogtreecommitdiffstatsci
path: root/Templates/FileDialog.template
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-05 20:51:26 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-05 20:51:26 +0100
commit6a52a7126e74e1f1b26beb46b89ce6b03dafad2a (patch)
treea0ade24ba967c9105acee88c7a551cdb37b955fe /Templates/FileDialog.template
parent56383b7cadef47e34ba7dce0a676082544bccac7 (diff)
:book:, ItemTemplate files handling with multime root, Content made mandatory in TemplatedContainer
Diffstat (limited to 'Templates/FileDialog.template')
-rw-r--r--Templates/FileDialog.template24
1 files changed, 2 insertions, 22 deletions
diff --git a/Templates/FileDialog.template b/Templates/FileDialog.template
index 8305dfc9..7eba6828 100644
--- a/Templates/FileDialog.template
+++ b/Templates/FileDialog.template
@@ -28,7 +28,8 @@
<DirectoryView ShowFiles="true" Name="fv" CurrentDirectory="{./CurrentDirectory}" SelectedItemChanged="./onFVSelectedItemChanged"
Width="100%" Margin="0" MouseDoubleClick="./onFileSelect">
<Template>
- <ListBox Name="fileView" Data="{./FileSystemEntries}" SelectedItemChanged="./onSelectedItemChanged">
+ <ListBox ItemTemplate="#Crow.Templates.FileItems.template" Name="fileView" Data="{./FileSystemEntries}"
+ SelectedItemChanged="./onSelectedItemChanged">
<Template>
<HorizontalStack>
<Scroller ScrollX="{../scrollbar1.Value}" Name="scroller1"
@@ -41,27 +42,6 @@
Width="14" />
</HorizontalStack>
</Template>
- <ItemTemplate DataType="System.IO.FileInfo">
- <HorizontalStack Focusable="true" Height="Fit">
- <Image Margin="2" Width="16" Height="16"
- Path="#Crow.Icons.file.svg"/>
- <Label Text="{Name}" Width="Stretched"
- MouseEnter="{Background=BlueCrayola}"
- MouseLeave="{Background=Transparent}"/>
- </HorizontalStack>
- </ItemTemplate>
- <ItemTemplate DataType="System.IO.DirectoryInfo">
- <Border Foreground="Transparent" Focusable="true" Height="Fit">
- <HorizontalStack
- MouseEnter="{Background=BlueCrayola}"
- MouseLeave="{Background=Transparent}">
- <Image Margin="2" Width="16" Height="16"
- Path="#Crow.Icons.folder.svg"/>
- <Label Text="{Name}" Width="Stretched"/>
- <Label Text="{LastAccessTime}" />
- </HorizontalStack>
- </Border>
- </ItemTemplate>
</ListBox>
</Template>
</DirectoryView>