我在Win UI 3应用程序中显示俄语时遇到问题
下面是MainWindow.xaml
文件
<Window
x:Class="test.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:test"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="32" />
<RowDefinition />
</Grid.RowDefinitions>
<NavigationView
Grid.Row="1"
IsBackButtonVisible="Collapsed"
IsSettingsVisible="False">
<StackPanel x:Name="TitleBar" VerticalAlignment="Center">
<TextBlock Text="привет" />
<TextBox
Width="300"
Margin="8"
PlaceholderText="привет" />
<TextBox
Width="300"
Margin="8"
PlaceholderText="привет" />
</StackPanel>
</NavigationView>
</Grid>
</Window>
其实我也不确定是不是这个文件有问题,但是我也没有别的办法
1条答案
按热度按时间3xiyfsfu1#
您可以尝试更改Visual Studio的编码,或安装Force UTF-8 Visual Studio扩展