Skip to content

TextBox cannot be edited in a AppBarButton's Flyout #10530

@Jame9703

Description

@Jame9703

Describe the bug

    <AppBarButton Icon="Add" Label="Add">
        <AppBarButton.Flyout>
            <Flyout>
                <TextBox/>
            </Flyout>
        </AppBarButton.Flyout>
    </AppBarButton>

In this situation the TextBox can't be edited ,but it can still receive paste from clipboard

Steps to reproduce the bug

    <AppBarButton Icon="Add" Label="Add">
        <AppBarButton.Flyout>
            <Flyout>
                <TextBox/>
            </Flyout>
        </AppBarButton.Flyout>
    </AppBarButton>

Copy these codes to your UWP/WinUI2 or WinUI3 project,you'll find this bug

Expected behavior

The TextBox should work well in the AppBarButton's Flyout

Screenshots

Image
In normal times,when the right click menu pops up,the TextBox should be in the focused style,but it doesn't

NuGet package version

None

Windows version

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageIssue needs to be triaged by the area owners

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions