You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.9 KiB
60 lines
2.9 KiB
<controls:UserControlBase xmlns="https://github.com/avaloniaui" |
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
xmlns:controls="clr-namespace:StabilityMatrix.Avalonia.Controls" |
|
xmlns:dialogs="clr-namespace:StabilityMatrix.Avalonia.ViewModels.Dialogs" |
|
xmlns:avaloniaEdit="https://github.com/avaloniaui/avaloniaedit" |
|
xmlns:base="clr-namespace:StabilityMatrix.Avalonia.ViewModels.Base" |
|
xmlns:lang="clr-namespace:StabilityMatrix.Avalonia.Languages" |
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" |
|
x:DataType="base:ContentDialogProgressViewModelBase" |
|
x:Class="StabilityMatrix.Avalonia.Views.Dialogs.PackageModificationDialog"> |
|
<Grid Margin="8" RowDefinitions="Auto, Auto, Auto, *, Auto, Auto"> |
|
<TextBlock Grid.Row="0" Text="{Binding Text}" |
|
FontSize="24" |
|
FontWeight="Light" |
|
Margin="4" |
|
TextWrapping="WrapWithOverflow" |
|
TextAlignment="Center" |
|
HorizontalAlignment="Stretch"/> |
|
|
|
<TextBlock Grid.Row="1" Text="{Binding Description}" |
|
Margin="4" |
|
TextWrapping="WrapWithOverflow" |
|
TextAlignment="Center" |
|
IsVisible="{Binding !#Expander.IsExpanded}"/> |
|
|
|
<ProgressBar Grid.Row="2" Value="{Binding Value}" |
|
Margin="8" |
|
IsIndeterminate="{Binding IsIndeterminate}"/> |
|
|
|
<Expander Grid.Row="3" |
|
Margin="8" |
|
Header="More Details" x:Name="Expander"> |
|
<avaloniaEdit:TextEditor |
|
x:Name="Console" |
|
Margin="8" |
|
MaxHeight="400" |
|
DataContext="{Binding Console}" |
|
Document="{Binding Document}" |
|
FontFamily="Cascadia Code,Consolas,Menlo,Monospace" |
|
IsReadOnly="True" |
|
LineNumbersForeground="DarkSlateGray" |
|
ShowLineNumbers="True" |
|
VerticalScrollBarVisibility="Auto" |
|
WordWrap="True" /> |
|
</Expander> |
|
|
|
<CheckBox Grid.Row="4" IsChecked="{Binding CloseWhenFinished}" |
|
HorizontalAlignment="Center" |
|
IsVisible="{Binding !HideCloseButton}" |
|
Margin="4" Content="{x:Static lang:Resources.Label_CloseDialogWhenFinished}"/> |
|
|
|
<Button Grid.Row="5" Content="{x:Static lang:Resources.Action_Hide}" |
|
FontSize="20" |
|
HorizontalAlignment="Center" |
|
IsVisible="{Binding !HideCloseButton}" |
|
Command="{Binding OnCloseButtonClick}"/> |
|
</Grid> |
|
</controls:UserControlBase>
|
|
|