2020-04-10 02:50:38 +01:00
|
|
|
|
<!--
|
|
|
|
|
|
// /***************************************************************************
|
2020-04-17 21:45:50 +01:00
|
|
|
|
// Aaru Data Preservation Suite
|
|
|
|
|
|
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
2020-04-10 02:50:38 +01:00
|
|
|
|
//
|
2020-04-17 21:45:50 +01:00
|
|
|
|
// Filename : Encodings.xaml
|
2020-04-10 02:50:38 +01:00
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
|
|
|
|
//
|
2020-04-17 21:45:50 +01:00
|
|
|
|
// Component : GUI dialogs.
|
2020-04-10 02:50:38 +01:00
|
|
|
|
//
|
2020-04-17 21:45:50 +01:00
|
|
|
|
// ‐‐[ Description ] ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
2020-04-10 02:50:38 +01:00
|
|
|
|
//
|
2020-04-17 21:45:50 +01:00
|
|
|
|
// Encodings list dialog.
|
2020-04-10 02:50:38 +01:00
|
|
|
|
//
|
2020-04-17 21:45:50 +01:00
|
|
|
|
// ‐‐[ License ] ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
2020-04-10 02:50:38 +01:00
|
|
|
|
//
|
|
|
|
|
|
// This program 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.
|
|
|
|
|
|
//
|
|
|
|
|
|
// This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
//
|
2020-04-17 21:45:50 +01:00
|
|
|
|
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
2024-05-01 04:17:32 +01:00
|
|
|
|
// Copyright © 2011-2024 Natalia Portillo
|
2020-04-10 02:50:38 +01:00
|
|
|
|
// ****************************************************************************/
|
|
|
|
|
|
-->
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<Window xmlns="https://github.com/avaloniaui"
|
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2020-04-10 02:50:38 +01:00
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
2020-04-16 20:40:25 +01:00
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2024-05-01 04:05:22 +01:00
|
|
|
|
xmlns:dialogs="clr-namespace:Aaru.Gui.ViewModels.Dialogs"
|
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
|
d:DesignWidth="800"
|
|
|
|
|
|
d:DesignHeight="450"
|
|
|
|
|
|
Width="480"
|
|
|
|
|
|
Height="320"
|
|
|
|
|
|
x:Class="Aaru.Gui.Views.Dialogs.Encodings"
|
|
|
|
|
|
Icon="/Assets/aaru-logo.png"
|
|
|
|
|
|
CanResize="False"
|
|
|
|
|
|
Title="{Binding Title}">
|
2020-04-10 02:50:38 +01:00
|
|
|
|
<Design.DataContext>
|
2020-04-16 21:29:40 +01:00
|
|
|
|
<dialogs:EncodingsViewModel />
|
2020-04-10 02:50:38 +01:00
|
|
|
|
</Design.DataContext>
|
|
|
|
|
|
<Border Padding="15">
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<Grid HorizontalAlignment="Stretch"
|
|
|
|
|
|
VerticalAlignment="Stretch">
|
2020-04-10 02:50:38 +01:00
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
|
<RowDefinition Height="260" /> <RowDefinition Height="Auto" />
|
|
|
|
|
|
</Grid.RowDefinitions>
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<DataGrid ItemsSource="{Binding Encodings}"
|
|
|
|
|
|
HorizontalScrollBarVisibility="Visible">
|
2020-04-10 02:50:38 +01:00
|
|
|
|
<DataGrid.Columns>
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<DataGridTextColumn Header="{Binding CodeLabel}"
|
|
|
|
|
|
Binding="{Binding Name}"
|
|
|
|
|
|
Width="Auto"
|
2022-11-16 21:40:54 +00:00
|
|
|
|
IsReadOnly="True" />
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<DataGridTextColumn Header="{Binding NameLabel}"
|
|
|
|
|
|
Binding="{Binding DisplayName}"
|
|
|
|
|
|
Width="Auto"
|
2022-11-16 21:40:54 +00:00
|
|
|
|
IsReadOnly="True" />
|
2020-04-10 02:50:38 +01:00
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
|
</DataGrid>
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<Border Grid.Row="1"
|
|
|
|
|
|
Padding="10">
|
|
|
|
|
|
<Button HorizontalAlignment="Right"
|
|
|
|
|
|
VerticalAlignment="Bottom"
|
|
|
|
|
|
Command="{Binding CloseCommand}">
|
2020-04-10 02:50:38 +01:00
|
|
|
|
<TextBlock Text="{Binding CloseLabel}" />
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
</Window>
|