XAML 在WinUI3应用程序中显示俄语的问题

3mpgtkmj  于 2022-12-07  发布在  其他
关注(0)|答案(1)|浏览(243)

我在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>

其实我也不确定是不是这个文件有问题,但是我也没有别的办法

3xiyfsfu

3xiyfsfu1#

您可以尝试更改Visual Studio的编码,或安装Force UTF-8 Visual Studio扩展

相关问题