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 inside a ScrollViewer does not lose focus when click in empty spaces #10051

Open
HO-COOH opened this issue Oct 10, 2024 · 0 comments
Open
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners

Comments

@HO-COOH
Copy link

HO-COOH commented Oct 10, 2024

Describe the bug

TextBox inside a ScrollViewer does not lose focus when click in empty spaces, but a TextBox inside any other panel does.

Steps to reproduce the bug

  1. Use this xaml
 <Grid Margin="50">
     <Grid.ColumnDefinitions>
         <ColumnDefinition Width="*" />
         <ColumnDefinition Width="*" />
     </Grid.ColumnDefinitions>

     <ScrollViewer Background="Red">
         <TextBox
             Width="500"
             VerticalAlignment="Center"
             PlaceholderText="This TextBox inside ScrollViewer does not lose focus when click in the red area" />
     </ScrollViewer>


     <Grid Grid.Column="1" Background="Blue">
         <TextBox
             Width="500"
             VerticalAlignment="Center"
             PlaceholderText="This TextBox inside Grid lose focus when click in the blue area" />
     </Grid>
 </Grid>

Expected behavior

No response

Screenshots

Image

NuGet package version

Image

Windows version

No response

Additional context

Related #3825
Repro

@HO-COOH HO-COOH added the bug Something isn't working label Oct 10, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Oct 10, 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 needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

1 participant