Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Bug] CollectionView in Right to Left flow direction Problem #8260

@hamiddd1980

Description

@hamiddd1980

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

  1. IEnumerable<Foo> items=new List<Foo>();
  2. <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.
CollectionView_True_RightToLeft

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.
CollectionView_RightToLeft

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:

Screenshots

Reproduction Link

CollectionView_RightToLeft

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions