aboutsummaryrefslogtreecommitdiffstatsci
path: root/Templates/FileDialog.template
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-08-12 17:17:05 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2016-08-12 17:17:05 +0200
commit86acbb4902a25100a183da7ce9e7a5662de8b4cb (patch)
tree6fb2b3897704267d3fdb5b260df51b29135577f2 /Templates/FileDialog.template
parented815a31113235890cf6c902c754fb3dc7536708 (diff)
default template searched in embedded resources with .template extension
Diffstat (limited to 'Templates/FileDialog.template')
-rw-r--r--Templates/FileDialog.template24
1 files changed, 24 insertions, 0 deletions
diff --git a/Templates/FileDialog.template b/Templates/FileDialog.template
new file mode 100644
index 00000000..c8a10c8d
--- /dev/null
+++ b/Templates/FileDialog.template
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<Window Caption="OpenFile" Height="300" Width="500">
+ <VerticalStack Margin="5">
+ <TextBox Margin="1" Width="0" Height="-1" Text="{CurrentPath}"/>
+ <HorizontalStack >
+ <ListBox Data="{Directories}" Width="-1" Height="0"
+ Background="0.5,0.5,0.5,0.5"
+ SelectedItemChanged="OnSelectedItemChanged"
+ Template="#Crow.Templates.ScrollingListBox.goml"
+ ItemTemplate="#Crow.Templates.tmpDirItem.goml" >
+ </ListBox>
+ <ListBox Data="{Files}" Width="0" Height="0"
+ Background="0.5,0.5,0.5,0.5"
+ SelectedItemChanged="onFileListItemChanged"
+ Template="#Crow.Templates.ScrollingListBox.goml"
+ ItemTemplate="#Crow.Templates.imgItemTemplate.goml">
+ </ListBox>
+ </HorizontalStack>
+ <HorizontalStack Fit="true" HorizontalAlignment="Right">
+ <Button Caption="Ok" MouseClick="onFileSelect"/>
+ <Button Caption="Cancel"/>
+ </HorizontalStack>
+ </VerticalStack>
+</Window>