mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[GUI] Redesign and reorganize Partition window.
This commit is contained in:
@@ -36,6 +36,7 @@
|
|||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:panels="clr-namespace:Aaru.Gui.ViewModels.Panels"
|
xmlns:panels="clr-namespace:Aaru.Gui.ViewModels.Panels"
|
||||||
|
xmlns:controls="clr-namespace:Aaru.Gui.Controls"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
d:DesignWidth="800"
|
d:DesignWidth="800"
|
||||||
d:DesignHeight="450"
|
d:DesignHeight="450"
|
||||||
@@ -43,13 +44,29 @@
|
|||||||
<Design.DataContext>
|
<Design.DataContext>
|
||||||
<panels:PartitionViewModel />
|
<panels:PartitionViewModel />
|
||||||
</Design.DataContext>
|
</Design.DataContext>
|
||||||
<StackPanel>
|
<Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto,*"
|
||||||
<TextBlock Text="{Binding NameText}" /> <TextBlock Text="{Binding TypeText}" />
|
Margin="12"
|
||||||
<TextBlock Text="{Binding StartText}" /> <TextBlock Text="{Binding LengthText}" />
|
RowSpacing="8">
|
||||||
<TextBlock Text="{Binding DescriptionLabelText}"
|
<controls:SpectreTextBlock Grid.Row="0"
|
||||||
IsVisible="{Binding !!DescriptionText}" />
|
Text="{Binding NameText, Mode=OneWay}" />
|
||||||
<TextBox Text="{Binding DescriptionText}"
|
<controls:SpectreTextBlock Grid.Row="1"
|
||||||
IsVisible="{Binding !!DescriptionText}"
|
Text="{Binding TypeText, Mode=OneWay}" />
|
||||||
IsReadOnly="True" />
|
<controls:SpectreTextBlock Grid.Row="2"
|
||||||
</StackPanel>
|
Text="{Binding StartText, Mode=OneWay}" />
|
||||||
|
<controls:SpectreTextBlock Grid.Row="3"
|
||||||
|
Text="{Binding LengthText, Mode=OneWay}" />
|
||||||
|
<controls:SpectreTextBlock Grid.Row="4"
|
||||||
|
Text="{Binding DescriptionLabelText, Mode=OneWay}"
|
||||||
|
IsVisible="{Binding !!DescriptionText, Mode=OneWay}" />
|
||||||
|
<Border Grid.Row="5"
|
||||||
|
IsVisible="{Binding !!DescriptionText, Mode=OneWay}"
|
||||||
|
BorderThickness="1"
|
||||||
|
BorderBrush="LightGray"
|
||||||
|
CornerRadius="8">
|
||||||
|
<ScrollViewer Padding="8">
|
||||||
|
<controls:SpectreTextBlock Text="{Binding DescriptionText, Mode=OneWay}"
|
||||||
|
TextWrapping="Wrap" />
|
||||||
|
</ScrollViewer>
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
Reference in New Issue
Block a user