|
|
@ -6,7 +6,7 @@ |
|
|
|
xmlns:api="clr-namespace:StabilityMatrix.Core.Models.Api;assembly=StabilityMatrix.Core" |
|
|
|
xmlns:api="clr-namespace:StabilityMatrix.Core.Models.Api;assembly=StabilityMatrix.Core" |
|
|
|
xmlns:dialogs="clr-namespace:StabilityMatrix.Avalonia.ViewModels.Dialogs" |
|
|
|
xmlns:dialogs="clr-namespace:StabilityMatrix.Avalonia.ViewModels.Dialogs" |
|
|
|
xmlns:designData="clr-namespace:StabilityMatrix.Avalonia.DesignData" |
|
|
|
xmlns:designData="clr-namespace:StabilityMatrix.Avalonia.DesignData" |
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" |
|
|
|
mc:Ignorable="d" d:DesignWidth="700" d:DesignHeight="450" |
|
|
|
x:DataType="dialogs:SelectModelVersionViewModel" |
|
|
|
x:DataType="dialogs:SelectModelVersionViewModel" |
|
|
|
xmlns:icons="https://github.com/projektanker/icons.avalonia" |
|
|
|
xmlns:icons="https://github.com/projektanker/icons.avalonia" |
|
|
|
xmlns:fluentAvalonia="clr-namespace:FluentIcons.FluentAvalonia;assembly=FluentIcons.FluentAvalonia" |
|
|
|
xmlns:fluentAvalonia="clr-namespace:FluentIcons.FluentAvalonia;assembly=FluentIcons.FluentAvalonia" |
|
|
@ -26,53 +26,77 @@ |
|
|
|
Source="{Binding PreviewImage}" /> |
|
|
|
Source="{Binding PreviewImage}" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TreeView Grid.Row="0" Grid.Column="1" |
|
|
|
<ListBox Grid.Row="0" Grid.Column="1" |
|
|
|
Margin="8" |
|
|
|
Margin="8" |
|
|
|
MaxHeight="450" |
|
|
|
MaxHeight="450" |
|
|
|
ItemsSource="{Binding Versions}" |
|
|
|
ItemsSource="{Binding Versions}" |
|
|
|
SelectedItem="{Binding SelectedVersionViewModel}"> |
|
|
|
SelectedItem="{Binding SelectedVersionViewModel}"> |
|
|
|
<TreeView.ItemTemplate> |
|
|
|
<ListBox.ItemTemplate> |
|
|
|
<DataTemplate DataType="{x:Type dialogs:ModelVersionViewModel}"> |
|
|
|
<DataTemplate DataType="{x:Type dialogs:ModelVersionViewModel}"> |
|
|
|
<StackPanel Orientation="Horizontal" |
|
|
|
<StackPanel Orientation="Horizontal" |
|
|
|
MinWidth="128" |
|
|
|
MinWidth="128" |
|
|
|
Margin="-24,4,0,4"> |
|
|
|
Margin="0,4,0,4"> |
|
|
|
<fluentAvalonia:SymbolIcon Symbol="Checkmark" |
|
|
|
<fluentAvalonia:SymbolIcon Symbol="Checkmark" |
|
|
|
Foreground="Lime" |
|
|
|
Foreground="Lime" |
|
|
|
IsVisible="{Binding IsInstalled}" |
|
|
|
IsVisible="{Binding IsInstalled}" |
|
|
|
VerticalAlignment="Center"/> |
|
|
|
VerticalAlignment="Center" /> |
|
|
|
<TextBlock Margin="8, 0" |
|
|
|
<TextBlock Margin="4, 0" |
|
|
|
Padding="4" |
|
|
|
Padding="4" |
|
|
|
Text="{Binding ModelVersion.Name}" /> |
|
|
|
Text="{Binding ModelVersion.Name}" /> |
|
|
|
|
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
</StackPanel> |
|
|
|
</DataTemplate> |
|
|
|
</DataTemplate> |
|
|
|
</TreeView.ItemTemplate> |
|
|
|
</ListBox.ItemTemplate> |
|
|
|
</TreeView> |
|
|
|
<ListBox.Template> |
|
|
|
|
|
|
|
<ControlTemplate> |
|
|
|
|
|
|
|
<ScrollViewer> |
|
|
|
|
|
|
|
<ItemsPresenter /> |
|
|
|
|
|
|
|
</ScrollViewer> |
|
|
|
|
|
|
|
</ControlTemplate> |
|
|
|
|
|
|
|
</ListBox.Template> |
|
|
|
|
|
|
|
</ListBox> |
|
|
|
|
|
|
|
|
|
|
|
<TreeView Grid.Row="0" Grid.Column="2" |
|
|
|
<ListBox Grid.Row="0" Grid.Column="2" |
|
|
|
Margin="8" |
|
|
|
|
|
|
|
ItemsSource="{Binding SelectedVersionViewModel.CivitFileViewModels}" |
|
|
|
ItemsSource="{Binding SelectedVersionViewModel.CivitFileViewModels}" |
|
|
|
SelectedItem="{Binding SelectedFile}"> |
|
|
|
SelectedItem="{Binding SelectedFile}"> |
|
|
|
<TreeView.ItemTemplate> |
|
|
|
<ListBox.Template> |
|
|
|
|
|
|
|
<ControlTemplate> |
|
|
|
|
|
|
|
<ScrollViewer> |
|
|
|
|
|
|
|
<ItemsPresenter Margin="8" /> |
|
|
|
|
|
|
|
</ScrollViewer> |
|
|
|
|
|
|
|
</ControlTemplate> |
|
|
|
|
|
|
|
</ListBox.Template> |
|
|
|
|
|
|
|
<ListBox.ItemTemplate> |
|
|
|
<DataTemplate DataType="{x:Type dialogs:CivitFileViewModel}"> |
|
|
|
<DataTemplate DataType="{x:Type dialogs:CivitFileViewModel}"> |
|
|
|
<StackPanel Orientation="Horizontal" Margin="-24, 4, 4, 4"> |
|
|
|
<Grid RowDefinitions="Auto, Auto" ColumnDefinitions="Auto, *" |
|
|
|
<fluentAvalonia:SymbolIcon Symbol="Checkmark" |
|
|
|
Margin="-4,0,0,0"> |
|
|
|
|
|
|
|
<fluentAvalonia:SymbolIcon Grid.Row="0" Grid.RowSpan="2" |
|
|
|
|
|
|
|
Grid.Column="0" |
|
|
|
|
|
|
|
Margin="0, 0, 8, 0" |
|
|
|
|
|
|
|
Symbol="Checkmark" |
|
|
|
Foreground="Lime" |
|
|
|
Foreground="Lime" |
|
|
|
IsVisible="{Binding IsInstalled}" |
|
|
|
IsVisible="{Binding IsInstalled}" |
|
|
|
VerticalAlignment="Center"/> |
|
|
|
VerticalAlignment="Center" /> |
|
|
|
<StackPanel Margin="8,0" VerticalAlignment="Top"> |
|
|
|
<TextBlock Grid.Row="0" Grid.Column="1" |
|
|
|
<TextBlock Margin="4,4,0,4" Text="{Binding CivitFile.Name}" /> |
|
|
|
Text="{Binding CivitFile.Name}" |
|
|
|
<TextBlock Margin="0,0,0,4" FontSize="11"> |
|
|
|
Margin="0, 4, 0, 4" |
|
|
|
<Run Text="{Binding CivitFile.Metadata.Size}" /> |
|
|
|
TextWrapping="Wrap" /> |
|
|
|
<Run Text="{Binding CivitFile.Metadata.Fp}" /> |
|
|
|
<TextBlock Grid.Row="1" Grid.Column="1" |
|
|
|
<Run Text="-" /> |
|
|
|
FontSize="11" |
|
|
|
<Run Text="{Binding CivitFile.FullFilesSize, Mode=OneWay}" /> |
|
|
|
Margin="0, 4, 0, 4" |
|
|
|
</TextBlock> |
|
|
|
TextWrapping="Wrap"> |
|
|
|
</StackPanel> |
|
|
|
<Run Text="{Binding CivitFile.Metadata.Format}" /> |
|
|
|
</StackPanel> |
|
|
|
<Run Text="-" /> |
|
|
|
|
|
|
|
<Run Text="{Binding CivitFile.Metadata.Size}" /> |
|
|
|
|
|
|
|
<Run Text="-" /> |
|
|
|
|
|
|
|
<Run Text="{Binding CivitFile.Metadata.Fp}" /> |
|
|
|
|
|
|
|
<Run Text="-" /> |
|
|
|
|
|
|
|
<Run Text="{Binding CivitFile.FullFilesSize, Mode=OneWay}" /> |
|
|
|
|
|
|
|
</TextBlock> |
|
|
|
|
|
|
|
</Grid> |
|
|
|
</DataTemplate> |
|
|
|
</DataTemplate> |
|
|
|
</TreeView.ItemTemplate> |
|
|
|
</ListBox.ItemTemplate> |
|
|
|
</TreeView> |
|
|
|
</ListBox> |
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="1" |
|
|
|
<StackPanel Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="1" |
|
|
|
Orientation="Horizontal" |
|
|
|
Orientation="Horizontal" |
|
|
@ -81,14 +105,14 @@ |
|
|
|
Content="Cancel" |
|
|
|
Content="Cancel" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
HorizontalAlignment="Center" |
|
|
|
Command="{Binding Cancel}" |
|
|
|
Command="{Binding Cancel}" |
|
|
|
Margin="8, 0"/> |
|
|
|
Margin="8, 0" /> |
|
|
|
|
|
|
|
|
|
|
|
<Button |
|
|
|
<Button |
|
|
|
Margin="8, 0" |
|
|
|
Margin="8, 0" |
|
|
|
Content="Import" |
|
|
|
Content="Import" |
|
|
|
Command="{Binding Import}" |
|
|
|
Command="{Binding Import}" |
|
|
|
IsEnabled="{Binding IsImportEnabled}" |
|
|
|
IsEnabled="{Binding IsImportEnabled}" |
|
|
|
Classes="accent"/> |
|
|
|
Classes="accent" /> |
|
|
|
</StackPanel> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
</Grid> |
|
|
|
</Grid> |
|
|
|