This repository has been archived by the owner on May 1, 2024. It is now read-only.
[Bug] Binding CurrentItem of CarouselView overwrites value of backing property when CarouselView initializes #12855
Labels
Projects
Description
When CarouselView initializes, it forces CurrentItem to be set to the first item in its collection. If CurrentItem is bound to a backing property, that causes it to be overwritten. Part of the issue may be that setting CurrentItem doesn't set Position?
Steps to Reproduce
Expected Behavior
CarouselView.CurrentItem should take on the value of its backing property at initialization and the backing property should be unchanged.
Actual Behavior
CarouselView.CurrentItem is initialized to the first item in ItemsSource, which is propagated to the property bound to CurrentItem.
Basic Information
Reproduction Link
CarouselInitializationBinding.zip
Workaround
No, it takes control. I can't figure out how to hook it so that the position changes after loading. EDIT: see next post.
The text was updated successfully, but these errors were encountered: