IsRightToLeftFlowDirectionEnabled With CoverFlowView Issue
See original GitHub issueHello 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:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can try, but I’m not promising anything 😃
v 2.0.9