This commit is contained in:
2025-11-16 10:06:37 +01:00
parent 0b50f1ade2
commit a5db244bc1

View File

@@ -28,7 +28,7 @@
<Grid <Grid
x:Name="GridMain" x:Name="GridMain"
Grid.Row="1" Grid.Row="1"
ColumnDefinitions="Auto,*,300" ColumnDefinitions="Auto,*,500"
Margin="3"> Margin="3">
<StackPanel <StackPanel
@@ -200,32 +200,45 @@
Margin="3" Margin="3"
DataContext="{Binding SelectedGridRow}" DataContext="{Binding SelectedGridRow}"
VerticalScrollBarVisibility="Auto"> VerticalScrollBarVisibility="Auto">
<ScrollViewer.Styles>
<Style Selector="Label">
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
</ScrollViewer.Styles>
<StackPanel <StackPanel
Spacing="6"> Spacing="6">
<!-- Update --> <!-- Update -->
<StackPanel <Grid
Spacing="6" ColumnDefinitions="150,*"
RowDefinitions="Auto,Auto,Auto,Auto"
RowSpacing="6"
ColumnSpacing="6"
IsVisible="{Binding IsUpdate}"> IsVisible="{Binding IsUpdate}">
<!-- Header --> <!-- Header -->
<StackPanel Orientation="Horizontal" Spacing="6"> <StackPanel
<Image Grid.ColumnSpan="2"
x:Name="ImageUpdate" Orientation="Horizontal"
Width="{x:Static symbols:SymbolGlobals.DefaultImageMediumSize}"/> Spacing="6">
<Image x:Name="ImageUpdate" Width="{x:Static symbols:SymbolGlobals.DefaultImageMediumSize}"/>
<TextBlock Text="Update" FontSize="{x:Static symbols:SymbolGlobals.DefaultImageMediumSize}"/> <TextBlock Text="Update" FontSize="{x:Static symbols:SymbolGlobals.DefaultImageMediumSize}"/>
</StackPanel> </StackPanel>
<!-- Inherit from --> <!-- Inherit from -->
<Label Content="Inherit from" Target="TextBoxUpdateActionInheritFrom"/> <Label Grid.Row="1" Grid.Column="0" Content="Inherit from" Target="TextBoxUpdateActionInheritFrom"/>
<TextBox <TextBox
Grid.Row="1" Grid.Column="1"
x:Name="TextBoxUpdateActionInheritFrom" x:Name="TextBoxUpdateActionInheritFrom"
Text="{Binding InheritFrom}"/> Text="{Binding InheritFrom}"/>
<!-- Source type --> <!-- Source type -->
<Label Content="Source type" Target="ComboBoxUpdateActionSourceType"/> <Label Grid.Row="2" Grid.Column="0" Content="Source type" Target="ComboBoxUpdateActionSourceType"/>
<ComboBox <ComboBox
Grid.Row="2" Grid.Column="1"
x:Name="ComboBoxUpdateActionSourceType" x:Name="ComboBoxUpdateActionSourceType"
ItemsSource="{x:Static vm:MainWindowGridRow.UpdateActionTypes}" ItemsSource="{x:Static vm:MainWindowGridRow.UpdateActionTypes}"
DisplayMemberBinding="{Binding Value}" DisplayMemberBinding="{Binding Value}"
@@ -233,18 +246,25 @@
SelectedValue="{Binding UpdateType}"/> SelectedValue="{Binding UpdateType}"/>
<!-- Is Directory --> <!-- Is Directory -->
<CheckBox <CheckBox Grid.Row="3" Grid.Column="1"
x:Name="CheckBoxUpdateActionIsDir" x:Name="CheckBoxUpdateActionIsDir"
Content="Is Directory" Content="Is Directory"
IsChecked="{Binding IsDirectory}"/> IsChecked="{Binding IsDirectory}"/>
</StackPanel> </Grid>
<!-- General --> <!-- General -->
<StackPanel <Grid
Spacing="6"> ColumnDefinitions="150,*"
RowDefinitions="Auto,Auto,Auto,Auto,Auto"
RowSpacing="6"
ColumnSpacing="6">
<!-- Header --> <!-- Header -->
<StackPanel Orientation="Horizontal" Spacing="6"> <StackPanel
Grid.ColumnSpan="2"
Orientation="Horizontal"
Spacing="6">
<Image <Image
x:Name="ImageGeneral" x:Name="ImageGeneral"
Width="{x:Static symbols:SymbolGlobals.DefaultImageMediumSize}"/> Width="{x:Static symbols:SymbolGlobals.DefaultImageMediumSize}"/>
@@ -252,20 +272,23 @@
</StackPanel> </StackPanel>
<!-- Id --> <!-- Id -->
<Label Content="Id" Target="TextBoxInstallActionId"/> <Label Grid.Row="1" Grid.Column="0" Content="Id" Target="TextBoxInstallActionId"/>
<TextBox <TextBox
Grid.Row="1" Grid.Column="1"
x:Name="TextBoxInstallActionId" x:Name="TextBoxInstallActionId"
Text="{Binding Id}"/> Text="{Binding Id}"/>
<!-- Name --> <!-- Name -->
<Label Content="Name" Target="TextBoxInstallActionName"/> <Label Grid.Row="2" Grid.Column="0" Content="Name" Target="TextBoxInstallActionName"/>
<TextBox <TextBox
Grid.Row="2" Grid.Column="1"
x:Name="TextBoxInstallActionName" x:Name="TextBoxInstallActionName"
Text="{Binding Name}"/> Text="{Binding Name}"/>
<!-- Side --> <!-- Side -->
<Label Content="Side" Target="ComboBoxInstallActionSide"/> <Label Grid.Row="3" Grid.Column="0" Content="Side" Target="ComboBoxInstallActionSide"/>
<ComboBox <ComboBox
Grid.Row="3" Grid.Column="1"
x:Name="ComboBoxInstallActionSide" x:Name="ComboBoxInstallActionSide"
ItemsSource="{x:Static vm:MainWindowGridRow.Sides}" ItemsSource="{x:Static vm:MainWindowGridRow.Sides}"
DisplayMemberBinding="{Binding Value}" DisplayMemberBinding="{Binding Value}"
@@ -274,17 +297,25 @@
<!-- Is Extra --> <!-- Is Extra -->
<CheckBox <CheckBox
Grid.Row="4" Grid.Column="1"
x:Name="CheckBoxInstallActionIsExtra" x:Name="CheckBoxInstallActionIsExtra"
Content="Is Extra" Content="Is Extra"
IsChecked="{Binding IsExtra}"/> IsChecked="{Binding IsExtra}"/>
</StackPanel> </Grid>
<!-- Destination --> <!-- Destination -->
<StackPanel <Grid
Spacing="6"> ColumnDefinitions="150,*"
RowDefinitions="Auto,Auto"
RowSpacing="6"
ColumnSpacing="6">
<!-- Header --> <!-- Header -->
<StackPanel Orientation="Horizontal" Spacing="6"> <StackPanel
Grid.ColumnSpan="2"
Orientation="Horizontal"
Spacing="6">
<Image <Image
x:Name="ImageDestination" x:Name="ImageDestination"
Width="{x:Static symbols:SymbolGlobals.DefaultImageMediumSize}"/> Width="{x:Static symbols:SymbolGlobals.DefaultImageMediumSize}"/>
@@ -292,18 +323,26 @@
</StackPanel> </StackPanel>
<!-- Destination path --> <!-- Destination path -->
<Label Content="Destination path" Target="TextBoxInstallDestPath"/> <Label Grid.Row="1" Grid.Column="0" Content="Destination path" Target="TextBoxInstallDestPath"/>
<TextBox <TextBox
Grid.Row="1" Grid.Column="1"
x:Name="TextBoxInstallDestPath" x:Name="TextBoxInstallDestPath"
Text="{Binding DestPath}"/> Text="{Binding DestPath}"/>
</StackPanel> </Grid>
<!-- Source --> <!-- Source -->
<StackPanel <Grid
Spacing="6"> ColumnDefinitions="150,*"
RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto"
RowSpacing="6"
ColumnSpacing="6">
<!-- Header --> <!-- Header -->
<StackPanel Orientation="Horizontal" Spacing="6"> <StackPanel
Grid.ColumnSpan="2"
Orientation="Horizontal"
Spacing="6">
<Image <Image
x:Name="ImageSource" x:Name="ImageSource"
Width="{x:Static symbols:SymbolGlobals.DefaultImageMediumSize}"/> Width="{x:Static symbols:SymbolGlobals.DefaultImageMediumSize}"/>
@@ -311,8 +350,9 @@
</StackPanel> </StackPanel>
<!-- Source types --> <!-- Source types -->
<Label Content="Source type" Target="CheckBoxInstallActionSourceType"/> <Label Grid.Row="1" Grid.Column="0" Content="Source type" Target="CheckBoxInstallActionSourceType"/>
<ComboBox <ComboBox
Grid.Row="1" Grid.Column="1"
x:Name="CheckBoxInstallActionSourceType" x:Name="CheckBoxInstallActionSourceType"
ItemsSource="{x:Static vm:MainWindowGridRow.SourceTypes}" ItemsSource="{x:Static vm:MainWindowGridRow.SourceTypes}"
DisplayMemberBinding="{Binding Value}" DisplayMemberBinding="{Binding Value}"
@@ -320,53 +360,67 @@
SelectedValue="{Binding SourceType}"/> SelectedValue="{Binding SourceType}"/>
<!-- Is Zip --> <!-- Is Zip -->
<CheckBox <CheckBox Grid.Row="2" Grid.Column="1"
x:Name="CheckBoxInstallActionIsZip" x:Name="CheckBoxInstallActionIsZip"
Content="Is Zip archive" Content="Is Zip archive"
IsChecked="{Binding IsZip}"/> IsChecked="{Binding IsZip}"/>
<!-- Source owner --> <!-- Source owner -->
<Label Content="Source owner" Target="TextBoxInstallActionSourceOwner"/> <Label Grid.Row="3" Grid.Column="0" Content="Source owner" Target="TextBoxInstallActionSourceOwner"/>
<TextBox <TextBox
Grid.Row="3" Grid.Column="1"
x:Name="TextBoxInstallActionSourceOwner" x:Name="TextBoxInstallActionSourceOwner"
Text="{Binding SourceOwner}"/> Text="{Binding SourceOwner}"/>
<!-- Source name --> <!-- Source name -->
<Label Content="Source name" Target="TextBoxInstallActionSourceName"/> <Label Grid.Row="4" Grid.Column="0" Content="Source name" Target="TextBoxInstallActionSourceName"/>
<TextBox <TextBox
Grid.Row="4" Grid.Column="1"
x:Name="TextBoxInstallActionSourceName" x:Name="TextBoxInstallActionSourceName"
Text="{Binding SourceName}"/> Text="{Binding SourceName}"/>
<!-- Source RegEx --> <!-- Source RegEx -->
<Label Content="Source RegEx" Target="TextBoxInstallActionSourceRegEx"/> <Label Grid.Row="5" Grid.Column="0" Content="Source RegEx" Target="TextBoxInstallActionSourceRegEx"/>
<TextBox <TextBox
Grid.Row="5" Grid.Column="1"
x:Name="TextBoxInstallActionSourceRegEx" x:Name="TextBoxInstallActionSourceRegEx"
Text="{Binding SourceRegex}"/> Text="{Binding SourceRegex}"/>
<!-- Source url --> <!-- Source url -->
<Label Content="Source URL" Target="TextBoxInstallActionSourceUrl"/> <Label Grid.Row="6" Grid.Column="0" Content="Source URL" Target="TextBoxInstallActionSourceUrl"/>
<TextBox <TextBox
Grid.Row="6" Grid.Column="1"
x:Name="TextBoxInstallActionSourceUrl" Text="{Binding SourceUrl}"/> x:Name="TextBoxInstallActionSourceUrl" Text="{Binding SourceUrl}"/>
<!-- Zip archive path --> <!-- Zip archive path -->
<Label Content="ZIP archive path" Target="TextBoxInstallActionZipArchivePath"/> <Label Grid.Row="7" Grid.Column="0" Content="ZIP archive path" Target="TextBoxInstallActionZipArchivePath"/>
<TextBox <TextBox
Grid.Row="7" Grid.Column="1"
x:Name="TextBoxInstallActionZipArchivePath" x:Name="TextBoxInstallActionZipArchivePath"
Text="{Binding SourceUrl}"/> Text="{Binding SourceUrl}"/>
<!-- Source path --> <!-- Source path -->
<Label Content="Source path" Target="TextBoxInstallActionSourcePath"/> <Label Grid.Row="8" Grid.Column="0" Content="Source path" Target="TextBoxInstallActionSourcePath"/>
<TextBox <TextBox
Grid.Row="8" Grid.Column="1"
x:Name="TextBoxInstallActionSourcePath" x:Name="TextBoxInstallActionSourcePath"
Text="{Binding SrcPath}"/> Text="{Binding SrcPath}"/>
</StackPanel> </Grid>
<StackPanel <!-- Metadata -->
Margin="3" <Grid
Spacing="6"> ColumnDefinitions="150,*"
RowDefinitions="Auto,Auto"
RowSpacing="6"
ColumnSpacing="6"
VerticalAlignment="Center">
<!-- Header --> <!-- Header -->
<StackPanel Orientation="Horizontal" Spacing="6"> <StackPanel
Grid.ColumnSpan="2"
Orientation="Horizontal"
Spacing="6">
<Image <Image
x:Name="ImageMetadata" x:Name="ImageMetadata"
Width="{x:Static symbols:SymbolGlobals.DefaultImageMediumSize}"/> Width="{x:Static symbols:SymbolGlobals.DefaultImageMediumSize}"/>
@@ -374,11 +428,12 @@
</StackPanel> </StackPanel>
<!-- Website --> <!-- Website -->
<Label Content="Website" Target="TextBoxInstallActionWebsite"/> <Label Grid.Row="1" Grid.Column="0" Content="Website" Target="TextBoxInstallActionWebsite"/>
<TextBox <TextBox
Grid.Row="1" Grid.Column="1"
x:Name="TextBoxInstallActionWebsite" x:Name="TextBoxInstallActionWebsite"
Text="{Binding Website}"/> Text="{Binding Website}"/>
</StackPanel> </Grid>
</StackPanel> </StackPanel>
</ScrollViewer> </ScrollViewer>
</Grid> </Grid>