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

TextBox in AppBarButton.Flyout cannot get input focus #10065

Closed
SongOfYouth opened this issue Oct 15, 2024 · 3 comments
Closed

TextBox in AppBarButton.Flyout cannot get input focus #10065

SongOfYouth opened this issue Oct 15, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@SongOfYouth
Copy link

Describe the bug

like below, the textbox cannot get input focus when flyout is shown

Steps to reproduce the bug

        <AppBarButton Content="Flyout">
            <AppBarButton.Flyout>
                <Flyout>
                    <TextBox Width="100" />
                </Flyout>
            </AppBarButton.Flyout>
        </AppBarButton>

Expected behavior

No response

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.6.1: 1.6.240923002

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

@SongOfYouth SongOfYouth added the bug Something isn't working label Oct 15, 2024
Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Oct 15, 2024
@Skittles2519
Copy link

In your AppBarButon, you need to add AllowFocusOnInteraction="True" for your TextBox to automatically get focus when you open the Flyout.
If you don't want it to automatically get focus and require the user to click into the TextBox first, you would add AllowFocusOnInteraction="True" to your TextBox instead.

@SongOfYouth
Copy link
Author

In your AppBarButon, you need to add AllowFocusOnInteraction="True" for your TextBox to automatically get focus when you open the Flyout. If you don't want it to automatically get focus and require the user to click into the TextBox first, you would add AllowFocusOnInteraction="True" to your TextBox instead.

Thanks for the anser,get it!

@microsoft-github-policy-service microsoft-github-policy-service bot removed the needs-triage Issue needs to be triaged by the area owners label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants