feat: 为多个窗口启用自动翻译拦截器

为 MapLabelSearchWindow、ArtifactOcrDialog、PromptDialog 等十三个 WPF 窗口添加了 AutoTranslateInterceptor 行为,以启用自动翻译功能。这确保了应用程序界面的文本内容在需要时可以被正确拦截并处理,提升国际化支持。
This commit is contained in:
辉鸭蛋
2026-01-28 01:22:09 +08:00
parent 0c4f7f30c8
commit fc942bd8cd
14 changed files with 37 additions and 9 deletions

View File

@@ -6,6 +6,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
xmlns:vio="http://schemas.lepo.co/wpfui/2022/xaml/violeta"
xmlns:behavior="clr-namespace:BetterGenshinImpact.View.Behavior"
Title="脚本仓库"
Width="410"
MinWidth="360"
@@ -13,6 +14,7 @@
ResizeMode="NoResize"
Background="#202020"
ExtendsContentIntoTitleBar="True"
behavior:AutoTranslateInterceptor.EnableAutoTranslate="True"
FontFamily="{DynamicResource TextThemeFontFamily}"
SizeToContent="Height"
WindowBackdropType="Auto"
@@ -320,4 +322,4 @@
</Grid>
</Grid>
</Grid>
</ui:FluentWindow>
</ui:FluentWindow>