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

Carousel doesn't detach old items, and always show first #11119

Closed
SKProCH opened this issue Apr 24, 2023 · 1 comment · Fixed by #11141
Closed

Carousel doesn't detach old items, and always show first #11119

SKProCH opened this issue Apr 24, 2023 · 1 comment · Fixed by #11141
Assignees
Labels

Comments

@SKProCH
Copy link
Contributor

SKProCH commented Apr 24, 2023

Describe the bug
We have carousel, and if we cycle through all elements (to initialize it), and return to first and continue cycling, when first element doesn't detached. Here is example:
956607e6-4e25-4a89-9e08-1db3c1d3881a

To Reproduce
Steps to reproduce the behavior:

Repro below

  1. Create a new Avalonia 11.0.0-preview7 project
  2. Add listbox with items (for cycling purposes)
  3. Add carousel with items
  4. Cycle it

Expected behavior
Carousel should remove old items.

  • Version: 11.0.0-preview7

Additional context
Cycling code:

private void SelectingItemsControl_OnSelectionChanged(object? sender, SelectionChangedEventArgs e) {
    Carousel1.SelectedIndex = ListBox1.SelectedIndex;
}

AvaloniaApplication1.zip

@rabbitism
Copy link
Contributor

A simpler reproduce:

  1. Go to control catelog carousel page
  2. press next
  3. press previous
  4. press next again

and Carousel will jump back and forth between pic1 and pic2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants