mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[GUI] Redesign and reorganize License dialog.
This commit is contained in:
@@ -37,6 +37,7 @@
|
|||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:dialogs="clr-namespace:Aaru.Gui.ViewModels.Dialogs"
|
xmlns:dialogs="clr-namespace:Aaru.Gui.ViewModels.Dialogs"
|
||||||
xmlns:localization="clr-namespace:Aaru.Localization;assembly=Aaru.Localization"
|
xmlns:localization="clr-namespace:Aaru.Localization;assembly=Aaru.Localization"
|
||||||
|
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"
|
||||||
@@ -49,21 +50,26 @@
|
|||||||
<Design.DataContext>
|
<Design.DataContext>
|
||||||
<dialogs:LicenseViewModel />
|
<dialogs:LicenseViewModel />
|
||||||
</Design.DataContext>
|
</Design.DataContext>
|
||||||
<Border Padding="15">
|
<Grid Margin="12"
|
||||||
<Grid HorizontalAlignment="Stretch"
|
RowSpacing="8"
|
||||||
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
RowDefinitions="260,Auto">
|
RowDefinitions="*,Auto">
|
||||||
<TextBox Grid.Row="0"
|
<Border Grid.Row="0"
|
||||||
IsReadOnly="True"
|
BorderThickness="1"
|
||||||
Text="{Binding LicenseText}" />
|
BorderBrush="LightGray"
|
||||||
<Border Grid.Row="1"
|
CornerRadius="8">
|
||||||
Padding="10">
|
<ScrollViewer Padding="8">
|
||||||
|
<controls:SpectreTextBlock TextWrapping="Wrap"
|
||||||
|
Text="{Binding LicenseText, Mode=OneWay}" />
|
||||||
|
</ScrollViewer>
|
||||||
|
</Border>
|
||||||
|
<Border Grid.Row="1">
|
||||||
<Button HorizontalAlignment="Right"
|
<Button HorizontalAlignment="Right"
|
||||||
VerticalAlignment="Bottom"
|
VerticalAlignment="Bottom"
|
||||||
Command="{Binding CloseCommand}">
|
Command="{Binding CloseCommand, Mode=OneWay}">
|
||||||
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Close}" />
|
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Close}" />
|
||||||
</Button>
|
</Button>
|
||||||
</Border>
|
</Border>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
|
||||||
</Window>
|
</Window>
|
||||||
Reference in New Issue
Block a user