aboutsummaryrefslogtreecommitdiffstatsci
path: root/Templates/FileDialog.template
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2017-01-01 08:46:35 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2017-01-01 08:46:35 +0100
commitfa245bf07cd476bd6e63c867a4c7c38cca6c4bcc (patch)
tree9252bc8ff803d6d40dcc3fa18032e18978b418e0 /Templates/FileDialog.template
parentf98beedb7a53244564d2207f53f9c93514a2c2d7 (diff)
* FileDialog.template:
right pane * BasicTests.cs: divers * OpenTKGameWindow.cs: sleep removed from update loop * TemplatedGroup.cs: replace .clone with quick prop affectations * Instantiator.cs: prop less debug
Diffstat (limited to 'Templates/FileDialog.template')
-rw-r--r--Templates/FileDialog.template34
1 files changed, 33 insertions, 1 deletions
diff --git a/Templates/FileDialog.template b/Templates/FileDialog.template
index 883efd90..db145f0f 100644
--- a/Templates/FileDialog.template
+++ b/Templates/FileDialog.template
@@ -67,7 +67,39 @@
</Template>
</DirectoryView>
<Splitter/>
-
+ <DirectoryView ShowFiles="true" Name="dv" CurrentDirectory="{../dv.SelectedItem}"
+ Width="50%" Margin="1">
+ <Template>
+ <ListBox Name="fileView" Data="{./FileSystemEntries}">
+ <Template>
+ <Border BorderWidth="1" Margin="1" MinimumSize="10,10">
+ <Scroller Name="scroller1" Margin="1" VerticalScrolling="true">
+ <Wrapper Orientation="Horizontal" Height="Fit"
+ Name="ItemsContainer" Margin="0" VerticalAlignment="Top"/>
+ </Scroller>
+ </Border>
+ </Template>
+ <ItemTemplate DataType="System.IO.FileInfo">
+ <HorizontalStack Focusable="true" Height="Fit" >
+ <Image Margin="2" Width="14" Height="14"
+ Path="#Crow.Images.Icons.file.svg"/>
+ <Label Text="{Name}"
+ MouseEnter="{Background=BlueCrayola}"
+ MouseLeave="{Background=Transparent}"/>
+ </HorizontalStack>
+ </ItemTemplate>
+ <ItemTemplate DataType="System.IO.DirectoryInfo">
+ <HorizontalStack Focusable="true" Height="Fit" >
+ <Image Margin="2" Width="14" Height="14"
+ Path="#Crow.Images.Icons.folder.svg"/>
+ <Label Text="{Name}"
+ MouseEnter="{Background=BlueCrayola}"
+ MouseLeave="{Background=Transparent}"/>
+ </HorizontalStack>
+ </ItemTemplate>
+ </ListBox>
+ </Template>
+ </DirectoryView>
</HorizontalStack>
<TextBox Text="{../../dv.SelectedItem}"/>
<HorizontalStack Fit="true" HorizontalAlignment="Right">