Replace StackPanel with WrapPanel for button layout in DvdInfo and DvdWritableInfo

This commit is contained in:
2025-12-15 16:22:21 +00:00
parent 83b0c455d7
commit f3470b2b17
2 changed files with 42 additions and 29 deletions

View File

@@ -104,27 +104,29 @@
</Grid> </Grid>
</TabItem> </TabItem>
</TabControl> </TabControl>
<StackPanel Grid.Row="1" <WrapPanel Grid.Row="1"
Orientation="Horizontal"
Spacing="8"
HorizontalAlignment="Left" HorizontalAlignment="Left"
VerticalAlignment="Bottom"> VerticalAlignment="Bottom">
<Button Command="{Binding SaveDvdDmiCommand, Mode=OneWay}" <Button Command="{Binding SaveDvdDmiCommand, Mode=OneWay}"
IsVisible="{Binding SaveDvdDmiVisible, Mode=OneWay}"> IsVisible="{Binding SaveDvdDmiVisible, Mode=OneWay}"
Margin="4">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Disc_Manufacturer_Information}" /> <TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Disc_Manufacturer_Information}" />
</Button> </Button>
<Button Command="{Binding SaveHdDvdCmiCommand, Mode=OneWay}" <Button Command="{Binding SaveHdDvdCmiCommand, Mode=OneWay}"
IsVisible="{Binding SaveHdDvdCmiVisible, Mode=OneWay}"> IsVisible="{Binding SaveHdDvdCmiVisible, Mode=OneWay}"
Margin="4">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Copyright_Management_Information}" /> <TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Copyright_Management_Information}" />
</Button> </Button>
<Button Command="{Binding SaveDvdBcaCommand, Mode=OneWay}" <Button Command="{Binding SaveDvdBcaCommand, Mode=OneWay}"
IsVisible="{Binding SaveDvdBcaVisible, Mode=OneWay}"> IsVisible="{Binding SaveDvdBcaVisible, Mode=OneWay}"
Margin="4">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Burst_Cutting_Area}" /> <TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Burst_Cutting_Area}" />
</Button> </Button>
<Button Command="{Binding SaveDvdAacsCommand, Mode=OneWay}" <Button Command="{Binding SaveDvdAacsCommand, Mode=OneWay}"
IsVisible="{Binding SaveDvdAacsVisible, Mode=OneWay}"> IsVisible="{Binding SaveDvdAacsVisible, Mode=OneWay}"
Margin="4">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_AACS_Information}" /> <TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_AACS_Information}" />
</Button> </Button>
</StackPanel> </WrapPanel>
</Grid> </Grid>
</UserControl> </UserControl>

View File

@@ -128,63 +128,74 @@
</Grid> </Grid>
</TabItem> </TabItem>
</TabControl> </TabControl>
<StackPanel Grid.Row="1" <WrapPanel Grid.Row="1"
Orientation="Horizontal"
Spacing="8"
HorizontalAlignment="Left" HorizontalAlignment="Left"
VerticalAlignment="Bottom"> VerticalAlignment="Bottom">
<Button Command="{Binding SaveLastBorderOutRmdCommand, Mode=OneWay}" <Button Command="{Binding SaveLastBorderOutRmdCommand, Mode=OneWay}"
IsVisible="{Binding SaveLastBorderOutRmdVisible, Mode=OneWay}"> IsVisible="{Binding SaveLastBorderOutRmdVisible, Mode=OneWay}"
Margin="4">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Last_Border_Out_RMD}" /> <TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Last_Border_Out_RMD}" />
</Button> </Button>
<Button Command="{Binding SaveDvdPreRecordedInfoCommand, Mode=OneWay}" <Button Command="{Binding SaveDvdPreRecordedInfoCommand, Mode=OneWay}"
IsVisible="{Binding SaveDvdPreRecordedInfoVisible, Mode=OneWay}"> IsVisible="{Binding SaveDvdPreRecordedInfoVisible, Mode=OneWay}"
Margin="4">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Pre_Recorded_Physical_Information}" /> <TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Pre_Recorded_Physical_Information}" />
</Button> </Button>
<Button Command="{Binding SaveDvdrMediaIdentifierCommand, Mode=OneWay}" <Button Command="{Binding SaveDvdrMediaIdentifierCommand, Mode=OneWay}"
IsVisible="{Binding SaveDvdrMediaIdentifierVisible, Mode=OneWay}"> IsVisible="{Binding SaveDvdrMediaIdentifierVisible, Mode=OneWay}"
Margin="4">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Media_Identifier}" /> <TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Media_Identifier}" />
</Button> </Button>
<Button Command="{Binding SaveDvdrPhysicalInformationCommand, Mode=OneWay}" <Button Command="{Binding SaveDvdrPhysicalInformationCommand, Mode=OneWay}"
IsVisible="{Binding SaveDvdrPhysicalInformationVisible, Mode=OneWay}"> IsVisible="{Binding SaveDvdrPhysicalInformationVisible, Mode=OneWay}"
Margin="4">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Recordable_Physical_Information}" /> <TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Recordable_Physical_Information}" />
</Button> </Button>
<Button Command="{Binding SaveHddvdrMediumStatusCommand, Mode=OneWay}" <Button Command="{Binding SaveHddvdrMediumStatusCommand, Mode=OneWay}"
IsVisible="{Binding SaveHddvdrMediumStatusVisible, Mode=OneWay}"> IsVisible="{Binding SaveHddvdrMediumStatusVisible, Mode=OneWay}"
Margin="4">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Medium_Status}" /> <TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Medium_Status}" />
</Button> </Button>
<Button Command="{Binding SaveHddvdrLastRmdCommand, Mode=OneWay}" <Button Command="{Binding SaveHddvdrLastRmdCommand, Mode=OneWay}"
IsVisible="{Binding SaveHddvdrLastRmdVisible, Mode=OneWay}"> IsVisible="{Binding SaveHddvdrLastRmdVisible, Mode=OneWay}"
Margin="4">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Last_Border_Out_RMD}" /> <TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Last_Border_Out_RMD}" />
</Button> </Button>
<Button Command="{Binding SaveDvdrLayerCapacityCommand, Mode=OneWay}" <Button Command="{Binding SaveDvdrLayerCapacityCommand, Mode=OneWay}"
IsVisible="{Binding SaveDvdrLayerCapacityVisible, Mode=OneWay}"> IsVisible="{Binding SaveDvdrLayerCapacityVisible, Mode=OneWay}"
Margin="4">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Layer_Capacity}" /> <TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Layer_Capacity}" />
</Button> </Button>
<Button Command="{Binding SaveDvdrDlMiddleZoneStartCommand, Mode=OneWay}" <Button Command="{Binding SaveDvdrDlMiddleZoneStartCommand, Mode=OneWay}"
IsVisible="{Binding SaveDvdrDlMiddleZoneStartVisible, Mode=OneWay}"> IsVisible="{Binding SaveDvdrDlMiddleZoneStartVisible, Mode=OneWay}"
Margin="4">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Middle_Zone_Start}" /> <TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Middle_Zone_Start}" />
</Button> </Button>
<Button Command="{Binding SaveDvdrDlJumpIntervalSizeCommand, Mode=OneWay}" <Button Command="{Binding SaveDvdrDlJumpIntervalSizeCommand, Mode=OneWay}"
IsVisible="{Binding SaveDvdrDlJumpIntervalSizeVisible, Mode=OneWay}"> IsVisible="{Binding SaveDvdrDlJumpIntervalSizeVisible, Mode=OneWay}"
Margin="4">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Jump_Interval_Size}" /> <TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Jump_Interval_Size}" />
</Button> </Button>
<Button Command="{Binding SaveDvdrDlManualLayerJumpStartLbaCommand, Mode=OneWay}" <Button Command="{Binding SaveDvdrDlManualLayerJumpStartLbaCommand, Mode=OneWay}"
IsVisible="{Binding SaveDvdrDlManualLayerJumpStartLbaVisible, Mode=OneWay}"> IsVisible="{Binding SaveDvdrDlManualLayerJumpStartLbaVisible, Mode=OneWay}"
Margin="4">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Manual_Layer_Jump_Start_LBA}" /> <TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Manual_Layer_Jump_Start_LBA}" />
</Button> </Button>
<Button Command="{Binding SaveDvdrDlRemapAnchorPointCommand, Mode=OneWay}" <Button Command="{Binding SaveDvdrDlRemapAnchorPointCommand, Mode=OneWay}"
IsVisible="{Binding SaveDvdrDlRemapAnchorPointVisible, Mode=OneWay}"> IsVisible="{Binding SaveDvdrDlRemapAnchorPointVisible, Mode=OneWay}"
Margin="4">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Remap_Anchor_Point}" /> <TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Remap_Anchor_Point}" />
</Button> </Button>
<Button Command="{Binding SaveDvdPlusAdipCommand, Mode=OneWay}" <Button Command="{Binding SaveDvdPlusAdipCommand, Mode=OneWay}"
IsVisible="{Binding SaveDvdPlusAdipVisible, Mode=OneWay}"> IsVisible="{Binding SaveDvdPlusAdipVisible, Mode=OneWay}"
Margin="4">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_ADIP}" /> <TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_ADIP}" />
</Button> </Button>
<Button Command="{Binding SaveDvdPlusDcbCommand, Mode=OneWay}" <Button Command="{Binding SaveDvdPlusDcbCommand, Mode=OneWay}"
IsVisible="{Binding SaveDvdPlusDcbVisible, Mode=OneWay}"> IsVisible="{Binding SaveDvdPlusDcbVisible, Mode=OneWay}"
Margin="4">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Disc_Control_Blocks}" /> <TextBlock Text="{x:Static localization:UI.ButtonLabel_Save_Disc_Control_Blocks}" />
</Button> </Button>
</StackPanel> </WrapPanel>
</Grid> </Grid>
</UserControl> </UserControl>