diff --git a/BetterGenshinImpact/View/Pages/View/PathingConfigView.xaml b/BetterGenshinImpact/View/Pages/View/PathingConfigView.xaml index 9edf80eb..ae5e9899 100644 --- a/BetterGenshinImpact/View/Pages/View/PathingConfigView.xaml +++ b/BetterGenshinImpact/View/Pages/View/PathingConfigView.xaml @@ -1,4 +1,4 @@ - @@ -302,4 +304,4 @@ - \ No newline at end of file + diff --git a/BetterGenshinImpact/View/Windows/AboutWindow.xaml b/BetterGenshinImpact/View/Windows/AboutWindow.xaml index e20cfaa2..b702372a 100644 --- a/BetterGenshinImpact/View/Windows/AboutWindow.xaml +++ b/BetterGenshinImpact/View/Windows/AboutWindow.xaml @@ -4,11 +4,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="关于" Width="400" Height="300" Background="#202020" ExtendsContentIntoTitleBar="True" + behavior:AutoTranslateInterceptor.EnableAutoTranslate="True" FontFamily="{DynamicResource TextThemeFontFamily}" WindowBackdropType="Auto" WindowStartupLocation="CenterOwner" @@ -62,4 +64,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..b84086ed 100644 --- a/BetterGenshinImpact/View/Windows/CheckUpdateWindow.xaml +++ b/BetterGenshinImpact/View/Windows/CheckUpdateWindow.xaml @@ -1,4 +1,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..9019e05f 100644 --- a/BetterGenshinImpact/View/Windows/JsonMonoDialog.xaml +++ b/BetterGenshinImpact/View/Windows/JsonMonoDialog.xaml @@ -1,15 +1,17 @@ - - \ 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..c2bc48d2 100644 --- a/BetterGenshinImpact/View/Windows/MapViewer.xaml +++ b/BetterGenshinImpact/View/Windows/MapViewer.xaml @@ -1,9 +1,10 @@ - - \ 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..8944a8a7 100644 --- a/BetterGenshinImpact/View/Windows/WelcomeDialog.xaml +++ b/BetterGenshinImpact/View/Windows/WelcomeDialog.xaml @@ -1,9 +1,10 @@ - - \ No newline at end of file +