2014-08-30 07:24:01 +00:00
|
|
|
<Window x:Class="RainmeterStudio.UI.Dialogs.CloseUnsavedDialog"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:r="clr-namespace:RainmeterStudio.Resources"
|
|
|
|
Title="{x:Static r:Strings.CloseUnsavedDialog_Title}" Height="200" Width="320"
|
|
|
|
WindowStartupLocation="CenterOwner"
|
|
|
|
WindowStyle="ToolWindow" ShowInTaskbar="False"
|
|
|
|
Background="WhiteSmoke" >
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="0" Text="{x:Static r:Strings.CloseUnsavedDialog_Message }"
|
|
|
|
Margin="4"/>
|
|
|
|
|
2014-09-08 18:31:47 +00:00
|
|
|
<ListBox Name="listUnsavedDocuments" Grid.Row="1" Padding="3"
|
|
|
|
IsEnabled="False" >
|
|
|
|
<ListBox.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<TextBlock Text="{Binding Reference.Name}" />
|
|
|
|
</DataTemplate>
|
|
|
|
</ListBox.ItemTemplate>
|
|
|
|
</ListBox>
|
2014-08-30 07:24:01 +00:00
|
|
|
|
|
|
|
<TextBlock Grid.Row="2" Text="{x:Static r:Strings.CloseUnsavedDialog_Question }"
|
|
|
|
Margin="4"/>
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="3" Orientation="Horizontal"
|
|
|
|
HorizontalAlignment="Right">
|
|
|
|
<Button Name="buttonSave" Content="{x:Static r:Strings.Dialog_Save}" IsDefault="True" Margin="1px" Click="buttonSave_Click" />
|
|
|
|
<Button Name="buttonDoNotSave" Content="{x:Static r:Strings.Dialog_DoNotSave}" Margin="1px" Click="buttonDoNotSave_Click" />
|
|
|
|
<Button Name="buttonCancel" Content="{x:Static r:Strings.Dialog_Cancel}" IsCancel="True" Margin="1px" Click="buttonCancel_Click" />
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
</Window>
|