HandyOrg / HandyOrg/HandyControl

hc: Carousel Specified argument was out of the range of valid values. Arg_ParamName_Name”

Open
#1,600 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
7.2k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

hc: The Carousel ItemsSource originally had multiple data sets, and the data whose set index is not 0 is displayed. When the ItemsSource collection changes, the index exceeds is reported

Steps to reproduce the bug

<hc:SimplePanel Grid.Row="1">
<hc:Carousel ItemsSource="{Binding ComponentItems, Converter={StaticResource ComponentItemRemoveNullConverter}}"
AllowDrop="True" Margin="3" IsCenter="True" AutoRun="False"
MinHeight="400" MaxWidth="600" VerticalAlignment="Center" HorizontalAlignment="Center" PageIndex="0">
hc:Carousel.ItemTemplate

<hc:SimplePanel Width="600">


</hc:SimplePanel>

</hc:Carousel.ItemTemplate>
</hc:Carousel>

</hc:SimplePanel>

Expected behavior

No response

Screenshots

No response

NuGet package version

None

IDE

No response

Framework type

No response

Windows version

No response

Additional context

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the provided XAML binding the Carousel ItemsSource to a changing collection, especially when the displayed data set index is not 0. Inspect the Carousel's ItemsSource and PageIndex handling; done means changing the collection no longer produces the out-of-range argument error and the displayed item remains valid.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.