Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Xamarin forms: Listview scrollbar showing on the left side

$
0
0

I have added the following codes for reversing the listview(first item on bottom).

In the ListView set following two properties:

FlowDirection=”RightToLeft”
Rotation=”180″

And in the view cells main layout:

FlowDirection=”LeftToRight”
Rotation=”180″

After that my scrollbar showing on the left side and mouse scrolling behaves opposite of the normal behavior(on UWP). Also, scrolling is not smooth. How can I fix these issues?

I got the above codes from this blog. Please see the Rotate the list section. In the blog itself, they are telling about the scroll bar on the left side issue and suggested to add FlowDirection property to solve this.

Complete Code:

 <ListView 
      FlowDirection="RightToLeft"
      Rotation="180"
      <ListView.ItemTemplate>
         <DataTemplate>
             <ViewCell>
               <ViewCell.View>
                  <StackLayout
                     FlowDirection="LeftToRight"
                     Rotation="180"> 
                     //Listview items
                  </StackLayout>
                </ViewCell.View>
             </ViewCell>
          </DataTemplate>
       </ListView.ItemTemplate>
   </ListView>

Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>