2020-04-17 21:45:50 +01:00
|
|
|
|
<!--
|
|
|
|
|
|
// /***************************************************************************
|
|
|
|
|
|
// Aaru Data Preservation Suite
|
|
|
|
|
|
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
|
|
|
|
|
//
|
|
|
|
|
|
// Filename : Partition.xaml
|
|
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
|
|
|
|
//
|
|
|
|
|
|
// Component : GUI panel.
|
|
|
|
|
|
//
|
|
|
|
|
|
// ‐‐[ Description ] ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
|
|
|
|
|
//
|
|
|
|
|
|
// Partition information panel.
|
|
|
|
|
|
//
|
|
|
|
|
|
// ‐‐[ License ] ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
|
|
|
|
|
//
|
|
|
|
|
|
// 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/>.
|
|
|
|
|
|
//
|
|
|
|
|
|
// ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
|
2024-12-19 10:45:18 +00:00
|
|
|
|
// Copyright © 2011-2025 Natalia Portillo
|
2020-04-17 21:45:50 +01:00
|
|
|
|
// ****************************************************************************/
|
|
|
|
|
|
-->
|
2024-05-01 04:05:22 +01:00
|
|
|
|
<UserControl xmlns="https://github.com/avaloniaui"
|
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2020-04-14 19:58:23 +01:00
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2024-05-01 04:05:22 +01:00
|
|
|
|
xmlns:panels="clr-namespace:Aaru.Gui.ViewModels.Panels"
|
2025-10-27 10:06:23 +00:00
|
|
|
|
xmlns:controls="clr-namespace:Aaru.Gui.Controls"
|
2024-05-01 04:05:22 +01:00
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
|
d:DesignWidth="800"
|
|
|
|
|
|
d:DesignHeight="450"
|
2025-11-19 05:26:14 +00:00
|
|
|
|
x:DataType="panels:PartitionViewModel"
|
2024-05-01 04:05:22 +01:00
|
|
|
|
x:Class="Aaru.Gui.Views.Panels.Partition">
|
2020-04-14 19:58:23 +01:00
|
|
|
|
<Design.DataContext>
|
2020-04-16 20:40:25 +01:00
|
|
|
|
<panels:PartitionViewModel />
|
2020-04-14 19:58:23 +01:00
|
|
|
|
</Design.DataContext>
|
2025-10-27 10:06:23 +00:00
|
|
|
|
<Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto,*"
|
|
|
|
|
|
Margin="12"
|
|
|
|
|
|
RowSpacing="8">
|
|
|
|
|
|
<controls:SpectreTextBlock Grid.Row="0"
|
2025-12-15 16:45:47 +00:00
|
|
|
|
Text="{Binding NameText, Mode=OneWay}"
|
|
|
|
|
|
TextWrapping="Wrap" />
|
2025-10-27 10:06:23 +00:00
|
|
|
|
<controls:SpectreTextBlock Grid.Row="1"
|
2025-12-15 16:45:47 +00:00
|
|
|
|
Text="{Binding TypeText, Mode=OneWay}"
|
|
|
|
|
|
TextWrapping="Wrap" />
|
2025-10-27 10:06:23 +00:00
|
|
|
|
<controls:SpectreTextBlock Grid.Row="2"
|
2025-12-15 16:45:47 +00:00
|
|
|
|
Text="{Binding StartText, Mode=OneWay}"
|
|
|
|
|
|
TextWrapping="Wrap" />
|
2025-10-27 10:06:23 +00:00
|
|
|
|
<controls:SpectreTextBlock Grid.Row="3"
|
2025-12-15 16:45:47 +00:00
|
|
|
|
Text="{Binding LengthText, Mode=OneWay}"
|
|
|
|
|
|
TextWrapping="Wrap" />
|
2025-10-27 10:06:23 +00:00
|
|
|
|
<controls:SpectreTextBlock Grid.Row="4"
|
|
|
|
|
|
Text="{Binding DescriptionLabelText, Mode=OneWay}"
|
2025-12-15 16:45:47 +00:00
|
|
|
|
IsVisible="{Binding !!DescriptionText, Mode=OneWay}"
|
|
|
|
|
|
TextWrapping="Wrap" />
|
2025-10-27 10:06:23 +00:00
|
|
|
|
<Border Grid.Row="5"
|
|
|
|
|
|
IsVisible="{Binding !!DescriptionText, Mode=OneWay}"
|
|
|
|
|
|
BorderThickness="1"
|
2025-12-15 16:46:14 +00:00
|
|
|
|
BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"
|
2025-10-27 10:06:23 +00:00
|
|
|
|
CornerRadius="8">
|
|
|
|
|
|
<ScrollViewer Padding="8">
|
|
|
|
|
|
<controls:SpectreTextBlock Text="{Binding DescriptionText, Mode=OneWay}"
|
|
|
|
|
|
TextWrapping="Wrap" />
|
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
</Grid>
|
2020-04-14 19:58:23 +01:00
|
|
|
|
</UserControl>
|