-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
ListBox inside Carousel will inherit PanelTemplate and crash when click to ListBoxItem #10374
Labels
Comments
Actually crash reproduces on all ItemsPresenter based controls. For example, multiline TextBox are affected too:
|
4 tasks
I'll test your branch if you wish. |
grokys
added a commit
that referenced
this issue
Feb 24, 2023
`VirtualizingCarouselPanel` can't bring items into view (it can't scroll) or get a control in a direction (it only hosts one control) but we shouldn't throw `NotImplementedException` as these methods can still be called. Just make them a no-op. Fixes #10374
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When the ListBox are inside Carousel, ListBox's ItemsPanel will inherit PanelTemplate from Carousel (VirtualizingCarouselPanel), and when we click to a ListBox item (while AutoScrollToSelectedItem is true) we got the following exception:
To Reproduce
Steps to reproduce the behavior:
Go to Avalonia repo
Open the MainWindow.xaml in VirtualizationDemo
Wrap ListBox with Carousel
Launch and try to click on any ListBox item
Expected behavior
ListBox shouldn't crash when we click to ListBoxItem
Desktop (please complete the following information):
Additional context
Stacktrace:
The text was updated successfully, but these errors were encountered: