question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IsRightToLeftFlowDirectionEnabled With CoverFlowView Issue

See original GitHub issue

Hello Andrei,

I have a problem with IsRightToLeftFlowDirectionEnabled. When I’m using it with CoverFlowView it seems a little buggy visually. the code is this:

xaml:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:SnirMobileTest"
             xmlns:panCardView="clr-namespace:PanCardView;assembly=PanCardView"
             x:Class="SnirMobileTest.MainPage">

  <ScrollView>
    <StackLayout>
      <panCardView:CoverFlowView x:Name="MainCarousel"
                               VerticalOptions="Start"
                               PositionShiftValue="60"
                               IsCyclical="False"
                               BackgroundColor="DarkBlue"
                               IsRightToLeftFlowDirectionEnabled="True">
        <panCardView:CoverFlowView.ItemTemplate>
          <DataTemplate>
            <ContentView Padding="40" VerticalOptions="Start">
              <StackLayout HeightRequest="{Binding HeightTest}" BackgroundColor="Red"></StackLayout>
            </ContentView>
          </DataTemplate>
        </panCardView:CoverFlowView.ItemTemplate>
      </panCardView:CoverFlowView>
    </StackLayout>
  </ScrollView>
</ContentPage>

xaml.cs:

public class TestObject
  {
    public List<InnerTestObject> StringItems { get; set; }
    public double HeightTest { get; set; }

    public class InnerTestObject
    {
      public string TestString1 { get; set; }
      public string TestString2 { get; set; }
    }
  }

  public partial class MainPage : ContentPage
  {
    public MainPage()
    {
      InitializeComponent();
      MainCarousel.ItemsSource = new List<TestObject>()
        {
          new TestObject
          {
            StringItems = new List<TestObject.InnerTestObject>
            {
              new TestObject.InnerTestObject
              {
                TestString1 = "1",
                TestString2 = "11"
              }
            },
            HeightTest = 200
          },
          new TestObject
          {
            StringItems = new List<TestObject.InnerTestObject>
            {
              new TestObject.InnerTestObject
              {
                TestString1 = "2",
                TestString2 = "22"
              },
              new TestObject.InnerTestObject
              {
                TestString1 = "3",
                TestString2 = "33"
              },
              new TestObject.InnerTestObject
              {
                TestString1 = "4",
                TestString2 = "44"
              }
            },
            HeightTest = 50
          },
        };
    }
  }

Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Snirdudecommented, Apr 15, 2019

I can try, but I’m not promising anything 😃

0reactions
AndreiMisiukevichcommented, Apr 22, 2019

v 2.0.9

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue with CoverFlowView #183
I have tabs page with two pages the first contains a CoverFlowView that bind to a list in the view model and display...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found