diff --git a/BetterGenshinImpact/View/Pages/View/PathingConfigView.xaml b/BetterGenshinImpact/View/Pages/View/PathingConfigView.xaml
index 9edf80eb..fad6cbc0 100644
--- a/BetterGenshinImpact/View/Pages/View/PathingConfigView.xaml
+++ b/BetterGenshinImpact/View/Pages/View/PathingConfigView.xaml
@@ -8,6 +8,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:sdl="http://schemas.sdl.com/xaml"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
+ xmlns:behavior="clr-namespace:BetterGenshinImpact.View.Behavior"
xmlns:view="clr-namespace:BetterGenshinImpact.ViewModel.Pages.View"
Width="1000"
Height="500"
@@ -17,6 +18,7 @@
d:DesignHeight="1000"
d:DesignWidth="500"
ExtendsContentIntoTitleBar="True"
+ behavior:AutoTranslateInterceptor.EnableAutoTranslate="True"
WindowBackdropType="Auto"
mc:Ignorable="d">
@@ -302,4 +304,4 @@
-
\ No newline at end of file
+
diff --git a/BetterGenshinImpact/View/Windows/ArtifactOcrDialog.xaml b/BetterGenshinImpact/View/Windows/ArtifactOcrDialog.xaml
index c36f9019..68b7904e 100644
--- a/BetterGenshinImpact/View/Windows/ArtifactOcrDialog.xaml
+++ b/BetterGenshinImpact/View/Windows/ArtifactOcrDialog.xaml
@@ -4,10 +4,12 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
+ xmlns:behavior="clr-namespace:BetterGenshinImpact.View.Behavior"
SizeToContent="WidthAndHeight"
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
ExtendsContentIntoTitleBar="True"
+ behavior:AutoTranslateInterceptor.EnableAutoTranslate="True"
FontFamily="{DynamicResource TextThemeFontFamily}"
ResizeMode="CanMinimize"
WindowBackdropType="Mica"
diff --git a/BetterGenshinImpact/View/Windows/CheckUpdateWindow.xaml b/BetterGenshinImpact/View/Windows/CheckUpdateWindow.xaml
index 55d676f6..27c5763c 100644
--- a/BetterGenshinImpact/View/Windows/CheckUpdateWindow.xaml
+++ b/BetterGenshinImpact/View/Windows/CheckUpdateWindow.xaml
@@ -8,6 +8,7 @@
xmlns:vio="http://schemas.lepo.co/wpfui/2022/xaml/violeta"
xmlns:emoji="clr-namespace:Emoji.Wpf;assembly=Emoji.Wpf"
xmlns:webview="clr-namespace:BetterGenshinImpact.View.Controls.Webview"
+ xmlns:behavior="clr-namespace:BetterGenshinImpact.View.Behavior"
x:Name="app"
Title="发现新版本"
Width="680"
@@ -15,6 +16,7 @@
SizeToContent="Height"
Background="#202020"
ExtendsContentIntoTitleBar="True"
+ behavior:AutoTranslateInterceptor.EnableAutoTranslate="True"
FontFamily="{DynamicResource TextThemeFontFamily}"
WindowBackdropType="Auto"
WindowStartupLocation="CenterOwner"
@@ -249,4 +251,4 @@
-
\ No newline at end of file
+
diff --git a/BetterGenshinImpact/View/Windows/FeedWindow.xaml b/BetterGenshinImpact/View/Windows/FeedWindow.xaml
index c7d0029f..775f2ba9 100644
--- a/BetterGenshinImpact/View/Windows/FeedWindow.xaml
+++ b/BetterGenshinImpact/View/Windows/FeedWindow.xaml
@@ -4,6 +4,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
+ xmlns:behavior="clr-namespace:BetterGenshinImpact.View.Behavior"
Width="400"
Height="700"
MinWidth="400"
@@ -11,6 +12,7 @@
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
ExtendsContentIntoTitleBar="True"
+ behavior:AutoTranslateInterceptor.EnableAutoTranslate="True"
FontFamily="{DynamicResource TextThemeFontFamily}"
WindowBackdropType="Mica"
WindowStartupLocation="CenterScreen"
@@ -263,4 +265,4 @@
-
\ No newline at end of file
+
diff --git a/BetterGenshinImpact/View/Windows/JsonMonoDialog.xaml b/BetterGenshinImpact/View/Windows/JsonMonoDialog.xaml
index 025cf163..52f1b515 100644
--- a/BetterGenshinImpact/View/Windows/JsonMonoDialog.xaml
+++ b/BetterGenshinImpact/View/Windows/JsonMonoDialog.xaml
@@ -5,11 +5,13 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
+ xmlns:behavior="clr-namespace:BetterGenshinImpact.View.Behavior"
Title="JSON 编辑器"
Width="600"
Height="600"
d:Background="#D2D2D2"
ExtendsContentIntoTitleBar="True"
+ behavior:AutoTranslateInterceptor.EnableAutoTranslate="True"
FontFamily="{DynamicResource TextThemeFontFamily}"
Tag="JsonMonoDialog"
WindowBackdropType="Mica"
@@ -55,4 +57,4 @@
-
\ No newline at end of file
+
diff --git a/BetterGenshinImpact/View/Windows/KeyBindingsWindow.xaml b/BetterGenshinImpact/View/Windows/KeyBindingsWindow.xaml
index 7722a39c..aaeac6ff 100644
--- a/BetterGenshinImpact/View/Windows/KeyBindingsWindow.xaml
+++ b/BetterGenshinImpact/View/Windows/KeyBindingsWindow.xaml
@@ -4,6 +4,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
+ xmlns:behavior="clr-namespace:BetterGenshinImpact.View.Behavior"
xmlns:pages="clr-namespace:BetterGenshinImpact.View.Pages"
Title="按键绑定设置"
Width="800"
@@ -11,6 +12,7 @@
d:DesignHeight="600"
d:DesignWidth="800"
ExtendsContentIntoTitleBar="True"
+ behavior:AutoTranslateInterceptor.EnableAutoTranslate="True"
WindowBackdropType="Mica"
WindowCornerPreference="Round"
WindowStartupLocation="CenterOwner"
@@ -24,4 +26,4 @@
Title="按键绑定设置"
Icon="pack://application:,,,/Assets/logo.ico" />
-
\ No newline at end of file
+
diff --git a/BetterGenshinImpact/View/Windows/MapLabelSearchWindow.xaml b/BetterGenshinImpact/View/Windows/MapLabelSearchWindow.xaml
index a9d43cb1..b3ee5307 100644
--- a/BetterGenshinImpact/View/Windows/MapLabelSearchWindow.xaml
+++ b/BetterGenshinImpact/View/Windows/MapLabelSearchWindow.xaml
@@ -4,6 +4,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
+ xmlns:behavior="clr-namespace:BetterGenshinImpact.View.Behavior"
Width="280"
Height="64"
MinWidth="120"
@@ -13,6 +14,7 @@
Topmost="True"
WindowStyle="None"
Background="Transparent"
+ behavior:AutoTranslateInterceptor.EnableAutoTranslate="True"
mc:Ignorable="d">
@@ -45,4 +47,4 @@
Content="录制编辑器" />
-
\ No newline at end of file
+
diff --git a/BetterGenshinImpact/View/Windows/MapViewer.xaml b/BetterGenshinImpact/View/Windows/MapViewer.xaml
index 06f7123d..1f972561 100644
--- a/BetterGenshinImpact/View/Windows/MapViewer.xaml
+++ b/BetterGenshinImpact/View/Windows/MapViewer.xaml
@@ -4,6 +4,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
+ xmlns:behavior="clr-namespace:BetterGenshinImpact.View.Behavior"
xmlns:windows="clr-namespace:BetterGenshinImpact.ViewModel.Windows"
Title="地图"
Width="512"
@@ -12,6 +13,7 @@
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
ExtendsContentIntoTitleBar="True"
+ behavior:AutoTranslateInterceptor.EnableAutoTranslate="True"
FontFamily="{DynamicResource TextThemeFontFamily}"
ResizeMode="CanMinimize"
Topmost="True"
@@ -37,4 +39,4 @@
-
\ No newline at end of file
+
diff --git a/BetterGenshinImpact/View/Windows/PromptDialog.xaml b/BetterGenshinImpact/View/Windows/PromptDialog.xaml
index ba7d09cb..4f755bc7 100644
--- a/BetterGenshinImpact/View/Windows/PromptDialog.xaml
+++ b/BetterGenshinImpact/View/Windows/PromptDialog.xaml
@@ -4,6 +4,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
+ xmlns:behavior="clr-namespace:BetterGenshinImpact.View.Behavior"
Width="500"
Height="225"
MinWidth="400"
@@ -11,6 +12,7 @@
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
ExtendsContentIntoTitleBar="True"
+ behavior:AutoTranslateInterceptor.EnableAutoTranslate="True"
FontFamily="{DynamicResource TextThemeFontFamily}"
SizeToContent="Width"
WindowBackdropType="Auto"
diff --git a/BetterGenshinImpact/View/Windows/RepoUpdateDialog.xaml b/BetterGenshinImpact/View/Windows/RepoUpdateDialog.xaml
index 0838027b..2f42e9bf 100644
--- a/BetterGenshinImpact/View/Windows/RepoUpdateDialog.xaml
+++ b/BetterGenshinImpact/View/Windows/RepoUpdateDialog.xaml
@@ -4,6 +4,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
+ xmlns:behavior="clr-namespace:BetterGenshinImpact.View.Behavior"
Width="520"
Height="280"
MinWidth="400"
@@ -11,6 +12,7 @@
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
ExtendsContentIntoTitleBar="True"
+ behavior:AutoTranslateInterceptor.EnableAutoTranslate="True"
FontFamily="{DynamicResource TextThemeFontFamily}"
ResizeMode="NoResize"
WindowBackdropType="Auto"
diff --git a/BetterGenshinImpact/View/Windows/ScriptRepoWindow.xaml b/BetterGenshinImpact/View/Windows/ScriptRepoWindow.xaml
index bf47daa2..09bfb771 100644
--- a/BetterGenshinImpact/View/Windows/ScriptRepoWindow.xaml
+++ b/BetterGenshinImpact/View/Windows/ScriptRepoWindow.xaml
@@ -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 @@
-
\ No newline at end of file
+
diff --git a/BetterGenshinImpact/View/Windows/ThemedMessageBox.xaml b/BetterGenshinImpact/View/Windows/ThemedMessageBox.xaml
index 011f0348..5a5e733b 100644
--- a/BetterGenshinImpact/View/Windows/ThemedMessageBox.xaml
+++ b/BetterGenshinImpact/View/Windows/ThemedMessageBox.xaml
@@ -4,6 +4,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
+ xmlns:behavior="clr-namespace:BetterGenshinImpact.View.Behavior"
Width="480"
Height="240"
MinWidth="400"
@@ -11,6 +12,7 @@
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
ExtendsContentIntoTitleBar="True"
+ behavior:AutoTranslateInterceptor.EnableAutoTranslate="True"
FontFamily="{DynamicResource TextThemeFontFamily}"
ResizeMode="NoResize"
WindowStartupLocation="CenterOwner"
diff --git a/BetterGenshinImpact/View/Windows/WelcomeDialog.xaml b/BetterGenshinImpact/View/Windows/WelcomeDialog.xaml
index d4d320e8..78f8f71d 100644
--- a/BetterGenshinImpact/View/Windows/WelcomeDialog.xaml
+++ b/BetterGenshinImpact/View/Windows/WelcomeDialog.xaml
@@ -4,6 +4,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
+ xmlns:behavior="clr-namespace:BetterGenshinImpact.View.Behavior"
Width="500"
Height="210"
MinWidth="400"
@@ -11,6 +12,7 @@
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
ExtendsContentIntoTitleBar="True"
+ behavior:AutoTranslateInterceptor.EnableAutoTranslate="True"
FontFamily="{DynamicResource TextThemeFontFamily}"
ResizeMode="CanMinimize"
WindowBackdropType="Mica"
@@ -71,4 +73,4 @@
-
\ No newline at end of file
+