fix: 存在更新时问题反馈提示显示不全

fix def53b9812 (commitcomment-161341748)
This commit is contained in:
uye
2025-07-03 23:29:50 +08:00
parent 66c0f5ac8e
commit 5ef1e84fb3

View File

@@ -18,18 +18,27 @@
s:View.ActionTarget="{Binding}"
mc:Ignorable="d">
<StackPanel>
<StackPanel HorizontalAlignment="Center" Visibility="{c:Binding 'NewVersionFoundInfo.Length + NewResourceFoundInfo.Length > 0', Source={x:Static ui:SettingsViewModel.VersionUpdateSettings}}">
<StackPanel
MaxWidth="450"
HorizontalAlignment="Center"
Visibility="{c:Binding 'NewVersionFoundInfo.Length + NewResourceFoundInfo.Length > 0',
Source={x:Static ui:SettingsViewModel.VersionUpdateSettings}}">
<controls:TextBlock Text="{Binding NewVersionFoundInfo, Source={x:Static ui:SettingsViewModel.VersionUpdateSettings}}" Visibility="{c:Binding 'NewVersionFoundInfo.Length > 0', Source={x:Static ui:SettingsViewModel.VersionUpdateSettings}}" />
<controls:TextBlock Text="{Binding NewResourceFoundInfo, Source={x:Static ui:SettingsViewModel.VersionUpdateSettings}}" Visibility="{c:Binding 'NewResourceFoundInfo.Length > 0', Source={x:Static ui:SettingsViewModel.VersionUpdateSettings}}" />
<controls:TextBlock
Margin="5,0,5,5"
HorizontalAlignment="Center"
Text="{DynamicResource CheckUpdateBeforeReportingIssue}" />
Block.TextAlignment="Center"
Text="{DynamicResource CheckUpdateBeforeReportingIssue}"
TextWrapping="Wrap" />
</StackPanel>
<controls:TextBlock
MaxWidth="450"
Margin="5"
HorizontalAlignment="Center"
Block.TextAlignment="Center"
Text="{DynamicResource CheckHelpBeforeReportingIssue}"
TextWrapping="Wrap"
Visibility="{c:Binding 'NewVersionFoundInfo.Length + NewResourceFoundInfo.Length == 0',
Source={x:Static ui:SettingsViewModel.VersionUpdateSettings}}" />
<Grid>