|
|
|
@ -16,7 +16,7 @@
|
|
|
|
|
x:CompileBindings="True" |
|
|
|
|
d:DataContext="{x:Static designData:DesignData.PackageInstallDetailViewModel}" |
|
|
|
|
x:Class="StabilityMatrix.Avalonia.Views.PackageManager.PackageInstallDetailView"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Grid ColumnDefinitions="Auto, *" |
|
|
|
|
RowDefinitions="Auto, *"> |
|
|
|
|
<controls:BetterAdvancedImage |
|
|
|
@ -28,13 +28,13 @@
|
|
|
|
|
CornerRadius="8" |
|
|
|
|
Source="{Binding SelectedPackage.PreviewImageUri}"> |
|
|
|
|
</controls:BetterAdvancedImage> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="0" Grid.Column="1" |
|
|
|
|
Margin="8" |
|
|
|
|
Orientation="Vertical"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<controls:HyperlinkIconButton NavigateUri="{Binding SelectedPackage.LicenseUrl}" |
|
|
|
|
Content="{Binding SelectedPackage.LicenseType}"/> |
|
|
|
|
Content="{Binding SelectedPackage.LicenseType}" /> |
|
|
|
|
|
|
|
|
|
<ToggleSwitch OnContent="{x:Static lang:Resources.Label_Releases}" |
|
|
|
|
OffContent="{x:Static lang:Resources.Label_Branches}" |
|
|
|
@ -98,71 +98,73 @@
|
|
|
|
|
<Run Text="{x:Static lang:Resources.Label_PleaseChooseDifferentName}" /> |
|
|
|
|
</TextBlock> |
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Expander Header="{x:Static lang:Resources.Label_AdvancedOptions}" |
|
|
|
|
FontSize="16" |
|
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
|
Margin="8"> |
|
|
|
|
<Grid ColumnDefinitions="*, *, *" |
|
|
|
|
RowDefinitions="Auto, Auto" |
|
|
|
|
Margin="8,0"> |
|
|
|
|
|
|
|
|
|
<Label Grid.Row="0" Grid.Column="0" |
|
|
|
|
Content="{x:Static lang:Resources.Label_SharedModelFolderStrategy}" |
|
|
|
|
Margin="0,0,0,4" /> |
|
|
|
|
<controls1:FAComboBox Grid.Row="1" Grid.Column="0" |
|
|
|
|
ItemsSource="{Binding SelectedPackage.AvailableSharedFolderMethods}" |
|
|
|
|
MinWidth="150" |
|
|
|
|
MinHeight="38" |
|
|
|
|
SelectedItem="{Binding SelectedSharedFolderMethod}"> |
|
|
|
|
<controls1:FAComboBox.ItemTemplate> |
|
|
|
|
<DataTemplate DataType="{x:Type models:SharedFolderMethod}"> |
|
|
|
|
<TextBlock |
|
|
|
|
Margin="8,4,0,4" |
|
|
|
|
Text="{Binding }" /> |
|
|
|
|
</DataTemplate> |
|
|
|
|
</controls1:FAComboBox.ItemTemplate> |
|
|
|
|
</controls1:FAComboBox> |
|
|
|
|
<WrapPanel Margin="8,0"> |
|
|
|
|
<StackPanel Orientation="Vertical" Margin="0,4,24,0"> |
|
|
|
|
<Label Content="{x:Static lang:Resources.Label_SharedModelStrategyShort}" /> |
|
|
|
|
<controls1:FAComboBox ItemsSource="{Binding SelectedPackage.AvailableSharedFolderMethods}" |
|
|
|
|
MinWidth="150" |
|
|
|
|
MinHeight="38" |
|
|
|
|
SelectedItem="{Binding SelectedSharedFolderMethod}"> |
|
|
|
|
<controls1:FAComboBox.ItemTemplate> |
|
|
|
|
<DataTemplate DataType="{x:Type models:SharedFolderMethod}"> |
|
|
|
|
<TextBlock |
|
|
|
|
Margin="8,4,0,4" |
|
|
|
|
Text="{Binding }" /> |
|
|
|
|
</DataTemplate> |
|
|
|
|
</controls1:FAComboBox.ItemTemplate> |
|
|
|
|
</controls1:FAComboBox> |
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Vertical" Margin="0,4,24,0"> |
|
|
|
|
<Label Content="{x:Static lang:Resources.Label_PyTorchVersion}" |
|
|
|
|
IsVisible="{Binding ShowTorchVersionOptions}"/> |
|
|
|
|
<controls1:FAComboBox ItemsSource="{Binding SelectedPackage.AvailableTorchVersions}" |
|
|
|
|
MinWidth="150" |
|
|
|
|
MinHeight="38" |
|
|
|
|
IsVisible="{Binding ShowTorchVersionOptions}" |
|
|
|
|
SelectedItem="{Binding SelectedTorchVersion}"> |
|
|
|
|
<controls1:FAComboBox.ItemTemplate> |
|
|
|
|
<DataTemplate DataType="{x:Type models:TorchVersion}"> |
|
|
|
|
<TextBlock |
|
|
|
|
Margin="8,4,0,4" |
|
|
|
|
Text="{Binding }" /> |
|
|
|
|
</DataTemplate> |
|
|
|
|
</controls1:FAComboBox.ItemTemplate> |
|
|
|
|
</controls1:FAComboBox> |
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
<Label Grid.Row="0" Grid.Column="1" |
|
|
|
|
Content="{x:Static lang:Resources.Label_PyTorchVersion}" |
|
|
|
|
IsVisible="{Binding ShowTorchVersionOptions}" |
|
|
|
|
Margin="0,0,0,4" /> |
|
|
|
|
<controls1:FAComboBox Grid.Row="1" Grid.Column="1" |
|
|
|
|
ItemsSource="{Binding SelectedPackage.AvailableTorchVersions}" |
|
|
|
|
MinWidth="150" |
|
|
|
|
MinHeight="38" |
|
|
|
|
IsVisible="{Binding ShowTorchVersionOptions}" |
|
|
|
|
SelectedItem="{Binding SelectedTorchVersion}"> |
|
|
|
|
<controls1:FAComboBox.ItemTemplate> |
|
|
|
|
<DataTemplate DataType="{x:Type models:TorchVersion}"> |
|
|
|
|
<TextBlock |
|
|
|
|
Margin="8,4,0,4" |
|
|
|
|
Text="{Binding }" /> |
|
|
|
|
</DataTemplate> |
|
|
|
|
</controls1:FAComboBox.ItemTemplate> |
|
|
|
|
</controls1:FAComboBox> |
|
|
|
|
<StackPanel Orientation="Vertical" Margin="0,4,24,0"> |
|
|
|
|
<Label Content="{x:Static lang:Resources.Label_Commit}" |
|
|
|
|
IsVisible="{Binding !IsReleaseMode}" /> |
|
|
|
|
<controls1:FAComboBox IsVisible="{Binding !IsReleaseMode}" |
|
|
|
|
ItemsSource="{Binding AvailableCommits}" |
|
|
|
|
MinWidth="150" |
|
|
|
|
MinHeight="38" |
|
|
|
|
SelectedItem="{Binding SelectedCommit}"> |
|
|
|
|
<controls1:FAComboBox.ItemTemplate> |
|
|
|
|
<DataTemplate DataType="{x:Type database:GitCommit}"> |
|
|
|
|
<TextBlock |
|
|
|
|
Margin="8,4,0,4" |
|
|
|
|
Name="NameTextBlock" |
|
|
|
|
Text="{Binding ShortSha}" /> |
|
|
|
|
</DataTemplate> |
|
|
|
|
</controls1:FAComboBox.ItemTemplate> |
|
|
|
|
</controls1:FAComboBox> |
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
|
<Label Grid.Row="0" Grid.Column="2" |
|
|
|
|
Content="{x:Static lang:Resources.Label_Commit}" |
|
|
|
|
Margin="0,0,0,4" |
|
|
|
|
IsVisible="{Binding !IsReleaseMode}" /> |
|
|
|
|
<controls1:FAComboBox Grid.Row="1" Grid.Column="2" |
|
|
|
|
IsVisible="{Binding !IsReleaseMode}" |
|
|
|
|
ItemsSource="{Binding AvailableCommits}" |
|
|
|
|
MinWidth="150" |
|
|
|
|
MinHeight="38" |
|
|
|
|
SelectedItem="{Binding SelectedCommit}"> |
|
|
|
|
<controls1:FAComboBox.ItemTemplate> |
|
|
|
|
<DataTemplate DataType="{x:Type database:GitCommit}"> |
|
|
|
|
<TextBlock |
|
|
|
|
Margin="8,4,0,4" |
|
|
|
|
Name="NameTextBlock" |
|
|
|
|
Text="{Binding ShortSha}" /> |
|
|
|
|
</DataTemplate> |
|
|
|
|
</controls1:FAComboBox.ItemTemplate> |
|
|
|
|
</controls1:FAComboBox> |
|
|
|
|
</Grid> |
|
|
|
|
<StackPanel Orientation="Vertical" Margin="0,4,24,0" |
|
|
|
|
IsVisible="{Binding !!SelectedPackage.SharedOutputFolders}"> |
|
|
|
|
<Label Content="{x:Static lang:Resources.Label_UseSharedOutputFolder}"/> |
|
|
|
|
<ToggleSwitch VerticalAlignment="Center" |
|
|
|
|
VerticalContentAlignment="Center" |
|
|
|
|
IsChecked="{Binding IsOutputSharingEnabled}"/> |
|
|
|
|
</StackPanel> |
|
|
|
|
</WrapPanel> |
|
|
|
|
</Expander> |
|
|
|
|
|
|
|
|
|
<Button Classes="success" |
|
|
|
|