HandyOrg / HandyOrg/HandyControl
hc: Carousel Specified argument was out of the range of valid values. Arg_ParamName_Name”
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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