diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-10-21 18:55:33 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-10-21 18:55:33 +0200 |
| commit | f31ffd683210c50b777dce4e76d0d9912ca925a8 (patch) | |
| tree | de0783b77f39de9fa7ccf04fbd8b53bb17db9905 /Templates/FileDialog.goml | |
| parent | 671366cd56e7d6b2a2afb0839e7fb0f895cb2df3 (diff) | |
file dialog
Diffstat (limited to 'Templates/FileDialog.goml')
| -rw-r--r-- | Templates/FileDialog.goml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Templates/FileDialog.goml b/Templates/FileDialog.goml new file mode 100644 index 00000000..c7ca3af3 --- /dev/null +++ b/Templates/FileDialog.goml @@ -0,0 +1,24 @@ +<?xml version="1.0"?> +<Window Title="OpenFile" Height="300" Width="500"> + <VerticalStack Margin="5"> + <TextBoxWidget 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="#go.Templates.ScrollingListBox.goml" + ItemTemplate="#go.Templates.tmpDirItem.goml" > + </ListBox> + <ListBox Data="{Files}" Width="0" Height="0" + Background="0,5;0,5;0,5;0,5" + SelectedItemChanged="onFileListItemChanged" + Template="#go.Templates.ScrollingListBox.goml" + ItemTemplate="#go.Templates.imgItemTemplate.goml"> + </ListBox> + </HorizontalStack> + <HorizontalStack Fit="true" HorizontalAlignment="Right"> + <Button Text="Ok" MouseClick="onFileSelect"/> + <Button Text="Cancel"/> + </HorizontalStack> + </VerticalStack> +</Window> |