Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation controls are garbled in the case of using Chinese content! #3322

Closed
Linjie123 opened this issue Dec 16, 2022 · 1 comment · Fixed by #3324
Closed

Navigation controls are garbled in the case of using Chinese content! #3322

Linjie123 opened this issue Dec 16, 2022 · 1 comment · Fixed by #3324
Labels
bug Something isn't working Status: Fixed
Milestone

Comments

@Linjie123
Copy link

Linjie123 commented Dec 16, 2022

Describe the bug

    <NavigationView x:Name="NvSample"
                    Grid.Row="0"
                    IsBackButtonVisible="Collapsed"
                    IsPaneVisible="True"
                    IsSettingsVisible="True"
                    ItemInvoked="NvSample_ItemInvoked"
                    Loaded="NvSample_Loaded"
                    PaneDisplayMode="Left"
                    SelectionFollowsFocus="Enabled">
        <NavigationView.MenuItems>
            <NavigationViewItem x:Name="Home"
                                Content="主页"
                                Icon="Home" />
            <NavigationViewItem Content="学员管理"
                                Icon="List"
                                IsExpanded="True"
                                SelectsOnInvoked="False">
                <NavigationViewItem.MenuItems>
                    <NavigationViewItem x:Name="Studentmessage"
                                        Content="学员信息"
                                        Icon="Message" />
                    <NavigationViewItem x:Name="Upload"
                                        Content="批量导入"
                                        Icon="Upload" />
                </NavigationViewItem.MenuItems>
            </NavigationViewItem>
            <NavigationViewItem Content="考勤管理"
                                Icon="Switch"
                                IsExpanded="True"
                                SelectsOnInvoked="False">
                <NavigationViewItem.MenuItems>
                    <NavigationViewItem x:Name="Attend"
                                        Content="考勤打卡"
                                        Icon="Document" />
                    <NavigationViewItem x:Name="Attendquery"
                                        Content="考勤查询"
                                        Icon="Document" />
                </NavigationViewItem.MenuItems>
            </NavigationViewItem>
            <NavigationViewItem Content="成绩管理"
                                Icon="Home"
                                IsExpanded="True"
                                SelectsOnInvoked="False">
                <NavigationViewItem.MenuItems>
                    <NavigationViewItem x:Name="ScoreManage"
                                        Content="成绩管理"
                                        Icon="Sort" />
                    <NavigationViewItem x:Name="Scorequery"
                                        Content="成绩查询"
                                        Icon="Filter" />
                </NavigationViewItem.MenuItems>
            </NavigationViewItem>
        </NavigationView.MenuItems>

        <Frame x:Name="ShellFrame">
            <Frame.ContentTransitions>
                <TransitionCollection>
                    <NavigationThemeTransition />
                </TransitionCollection>
            </Frame.ContentTransitions>
        </Frame>
    </NavigationView>

Steps to reproduce the bug

none

Expected behavior

No response

Screenshots

image

NuGet package version

Windows App SDK :1.2.221209.1
Windows App SDK :1.2.221116.1
Windows App SDK :1.2.221109.1

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 22H2 (22623, 2022 Update)

IDE

Visual Studio 2022

Additional context

No response

@bpulliam bpulliam transferred this issue from microsoft/WindowsAppSDK Dec 16, 2022
@ghost ghost added the needs-triage label Dec 16, 2022
@bpulliam bpulliam added bug Something isn't working and removed needs-triage labels Jan 10, 2023
@bpulliam bpulliam transferred this issue from microsoft/microsoft-ui-xaml Jan 10, 2023
@bpulliam bpulliam linked a pull request Jan 11, 2023 that will close this issue
@bpulliam
Copy link
Collaborator

You can ave the xaml file as Utf-8 to fix the problem. I have also changed the templates to be Utf-8 to avoid this in the future.

@gabbybilka gabbybilka added this to the 1.3 milestone Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Status: Fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants