Files
hoodFieldOfView/头罩视野slove/头罩视野/Views/ChangeLanguage.xaml

95 lines
4.6 KiB
Plaintext
Raw Normal View History

2026-04-18 18:14:12 +08:00
<Page x:Class="头罩视野.Views.ChangeLanguage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:hc="https://handyorg.github.io/handycontrol"
xmlns:local="clr-namespace:头罩视野.Views"
mc:Ignorable="d"
Background="#8AB1EB"
d:DesignHeight="768" d:DesignWidth="1024"
Title="ChangeLanguage">
<Grid>
<!-- 科技光效装饰层 (Canvas绝对定位) -->
<Canvas RenderTransformOrigin="0.5,0.674" Margin="0,148,0,-148" >
<!-- 左侧圆环光晕 -->
<Ellipse Width="280" Height="280" Canvas.Left="160" Canvas.Top="180"
Fill="Transparent" Stroke="#00FFF3" StrokeThickness="2" />
<Ellipse Width="240" Height="240" Canvas.Left="180" Canvas.Top="200"
Fill="Transparent" Stroke="#00FFF3" StrokeThickness="1.5" />
<Ellipse Width="200" Height="200" Canvas.Left="200" Canvas.Top="220"
Fill="Transparent" Stroke="#00FFF3" StrokeThickness="1" />
<!-- 右侧圆环光晕 -->
<Ellipse Width="280" Height="280" Canvas.Left="560" Canvas.Top="180"
Fill="Transparent" Stroke="#00FFF3" StrokeThickness="2" />
<Ellipse Width="240" Height="240" Canvas.Left="580" Canvas.Top="200"
Fill="Transparent" Stroke="#00FFF3" StrokeThickness="1.5" />
<Ellipse Width="200" Height="200" Canvas.Left="600" Canvas.Top="220"
Fill="Transparent" Stroke="#00FFF3" StrokeThickness="1"/>
<!-- 中间加号 -->
<TextBlock Text="+" FontSize="72" Foreground="White"
Canvas.Left="478" Canvas.Top="273" />
</Canvas>
<!-- 文字标注 (对应原图 TX_0, TX_1, TX_2) -->
<TextBlock x:Name="TX_1" Text="头罩视野测试仪"
FontSize="48" FontWeight="Bold" Foreground="White"
HorizontalAlignment="Left" VerticalAlignment="Top" Margin="352,87,0,0"/>
<TextBlock x:Name="TX_0" Text="TX_0" Foreground="White" FontSize="14"
HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="80,0,0,5"/>
<!-- 左侧中文按钮 (SW_1) -->
<Button x:Name="SW_1" Click="BtnGoNextPage_Click"
Width="180" Height="180"
HorizontalAlignment="Left" Margin="210,382,0,0"
Background="#FF141E30" BorderBrush="#00FFF3" BorderThickness="2"
Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" VerticalAlignment="Top">
<Button.Template>
<ControlTemplate TargetType="Button">
<Grid>
<!-- 按钮背景圆环 -->
<Ellipse Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="2"/>
<!-- 内容居中 -->
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Grid>
</ControlTemplate>
</Button.Template>
<Grid>
<TextBlock Text="👆" FontSize="40" Foreground="#FFFF00" Margin="0,-14,0,54"/>
<TextBlock x:Name="TX_2" Text="中文" FontSize="32" FontWeight="Bold" Foreground="#FFFF00" Margin="0,40,0,0" HorizontalAlignment="Center" Width="64"/>
</Grid>
</Button>
<!-- 右侧英文按钮 (SW_2) -->
<Button x:Name="SW_2"
Width="180" Height="180"
HorizontalAlignment="Left" Margin="614,382,0,0"
Background="#FF141E30" BorderBrush="#00FFF3" BorderThickness="2"
Cursor="Hand" VerticalAlignment="Top">
<Button.Template>
<ControlTemplate TargetType="Button">
<Grid>
<Ellipse Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="2"/>
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Grid>
</ControlTemplate>
</Button.Template>
<Grid>
<TextBlock Text="👆" FontSize="40" Foreground="#FFFF00" Margin="0,-14,0,44"/>
<TextBlock Text="英文" FontSize="32" FontWeight="Bold" Foreground="#FFFF00" Margin="0,40,0,0"/>
</Grid>
</Button>
</Grid>
</Page>