-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] CollectionView in Right to Left flow direction Problem #8260
Description
Description
Hello.
In CollectionView (Android and iOS platforms) , when FlowDirection is RightToLeft and ItemsLayout set to GridItemsLayout with Orientation Vertical.(at least Span =2) , the View itself is Right To Left but items arrangement and sequence is not like what in View's ItemsSource and items are actually laid from Left to Right.(example :with Span =3,first item in the View (which is the most right item) is Third one in bound itemsSource)
Thank You.
Steps to Reproduce
IEnumerable<Foo> items=new List<Foo>();<CollectionView ItemsSource="{Binding Path=items}" FlowDirection="RightToLeft">
<CollectionView.ItemsLayout>
<GridItemsLayout Span="3" Orientation="Vertical" >
</GridItemsLayout>
</CollectionView.ItemsLayout>
<CollectionView.ItemTemplate>
<DataTemplate>
...some Views to display Items for example Label
</DataTemplate>
</CollectionView.ItemTemplate>
<CollectionView/>
Expected Behavior
when FlowDirection is RightToLeft and with ItemsLayout set to GridItemsLayout with Vertical Orientation and Span=3,the Arrangement and Sequence of Bound Items must be the same as CollectionView's ItemsSource.(from right to left) .in the other word, the most right displayed item in the view must be the first item in the ItemsSource.

Actual Behavior
Arrangement and Sequence of Bound Items is not the same as CollectionView ItemsSource.(it's order is from Left to Right) for example first appeared item (most right item) in the view is third one in the itemsource.

Basic Information
- Version with issue:Xamarin.Forms 4.3.0.908675
- Last known good version:
- IDE: Visual Studio 2019
- Platform Target Frameworks:
- iOS:
- Android:
- UWP:
- Android Support Library Version:
- Nuget Packages:
- Affected Devices:
