summaryrefslogtreecommitdiff
path: root/Noddybox.WindowsPhone.Silverlight/SaveDialog.xaml
diff options
context:
space:
mode:
Diffstat (limited to 'Noddybox.WindowsPhone.Silverlight/SaveDialog.xaml')
-rw-r--r--Noddybox.WindowsPhone.Silverlight/SaveDialog.xaml43
1 files changed, 31 insertions, 12 deletions
diff --git a/Noddybox.WindowsPhone.Silverlight/SaveDialog.xaml b/Noddybox.WindowsPhone.Silverlight/SaveDialog.xaml
index ef45e68..708d8ef 100644
--- a/Noddybox.WindowsPhone.Silverlight/SaveDialog.xaml
+++ b/Noddybox.WindowsPhone.Silverlight/SaveDialog.xaml
@@ -1,4 +1,21 @@
-<UserControl x:Class="Noddybox.WindowsPhone.Silverlight.SaveDialog"
+<!-- This file is part of the Noddybox.WindowsPhone C# suite.
+
+ Noddybox.Emulation is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ Noddybox.Emulation is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Noddybox.Emulation. If not, see<http://www.gnu.org/licenses/> .
+
+ Copyright (c) 2012 Ian Cowburn
+-->
+<UserControl x:Class="Noddybox.WindowsPhone.Silverlight.SaveDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
@@ -16,17 +33,17 @@
<Grid x:Name="LayoutRoot" >
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
+ <RowDefinition Height="auto" />
<RowDefinition Height="*" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*" />
- <ColumnDefinition Width="1*" />
- </Grid.ColumnDefinitions>
- <TextBlock Grid.Row="0" Grid.ColumnSpan="2"
+ <TextBlock x:Name="titleText" Grid.Row="0"
+ Margin="4" FontWeight="Bold"
+ HorizontalAlignment="Center"/>
+ <TextBlock Grid.Row="1" Grid.ColumnSpan="2"
Text="{Binding Path, Mode=OneWay}" Margin="4"/>
- <ListBox x:Name="fileList" Grid.Row="1" Grid.ColumnSpan="2"
+ <ListBox x:Name="fileList" Grid.Row="2"
ItemsSource="{Binding FileList, Mode=OneWay}"
SelectionMode="Single"
SelectionChanged="OnFileListSelection">
@@ -41,19 +58,21 @@
<Image Grid.Column="0"
Source="{Binding IsFolder, Mode=OneWay, Converter={StaticResource ConvertFolderFlag}}"
VerticalAlignment="Center"
- HorizontalAlignment="Center" />
+ HorizontalAlignment="Center"
+ Height="32"/>
<TextBlock Grid.Column="2"
Text="{Binding Name, Mode=OneWay}" />
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
- <TextBox x:Name="fileName" Grid.Row="2" Grid.ColumnSpan="2"
+ <TextBox x:Name="fileName" Grid.Row="3"
+ Text="{Binding Filename, Mode=TwoWay}"
+ InputScope="FileName"
+ TabIndex="-1"
KeyUp="OnFilenameKeyUp"/>
- <Button x:Name="okButton" Grid.Row="3" Grid.Column="0" Content="Ok"
+ <Button x:Name="okButton" Grid.Row="4" Grid.Column="0" Content="Ok"
IsEnabled="{Binding IsFileSelected, Mode=OneWay}"
Click="OnOKButton"/>
- <Button x:Name="cancelButton" Grid.Row="3" Grid.Column="1" Content="Cancel"
- Click="OnCancelButton"/>
</Grid>
</UserControl>