question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ComboBox in a ScrollViewer in Xaml Islands can be scrolled off the window

See original GitHub issue

Steps to reproduce the bug In a XAML Islands application, create a ComboBox in a ScrollViewer:

<Page>
    <ScrollViewer>
        <StackPanel>
            <ComboBox>
                <ComboBoxItem Content="Foo" />
                <ComboBoxItem Content="Bar" />
                <ComboBoxItem Content="Baz" />
            </ComboBox>
        </StackPanel>
    <ScrollViewer>
</Page>

(The exact one is over at https://github.com/microsoft/terminal/blob/main/src/cascadia/TerminalSettingsEditor/Launch.xaml#L38-L67)

Run the app, open the comboBox, then mouse over the rest of the scroll viewer and start scrolling.

gh-9320-000

Steps to reproduce the behavior:

  1. Go to ‘…’
  2. Click on ‘…’

Expected behavior In a non-islands app, you can’t scroll the scrollviewer while the combobox is open. You have to dismiss the box first.

Actual behavior

The combo box’s entries float off the top of the window into space

Version Info

NuGet package version:

[Microsoft.UI.Xaml.2.5.0-prerelease.201202003]

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
DHowettcommented, Mar 17, 2021

This is amazing.

0reactions
DHowettcommented, Jul 31, 2023

There being no activity on an issue means the issue continues existing, not that it disappears!

Read more comments on GitHub >

github_iconTop Results From Across the Web

ScrollViewer inside ComboBox popup overflows right back ...
It's by-design within ComboBox control for touch model. ComboBox use CarouselPanel as ItemsPanel by default. It will make the list loop scroll.
Read more >
ComboBox within ScrollViewer scrolling issue
Hi, We have a problem with mousewheel scrolling when ComboBox is withing the ScrollView control. To reproduce it: - create a ScrollViewer ......
Read more >
Scroll viewer controls - Windows apps
Panning and scrolling allows users to reach content that extends beyond the bounds of the screen.
Read more >
ScrollViewer in Uno.UI
ScrollViewer in Uno.UI. The ScrollViewer represents a scrollable area that can contain other visible elements. For more info about its usage, please refer ......
Read more >
Wpf Datagrid Scrollbar Not Working
I would like to use a Datagrid to load data by groups of 1000 elements. Styling a ScrollViewer/Scrollbar In WPF. sanibel island toll...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found