xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.64k stars 1.88k forks source link

X2Property binding seems to be unfunctional in a carouselview #15877

Closed Vannoctar2 closed 3 months ago

Vannoctar2 commented 3 months ago

Hello,

I have a control that allows you to define the scroll of a scrollview. This control is defined by lines and ellipses.

This control is placed inside a carouselview. This project worked well with xamarin.

When I run the carouselview, the main page and the -1 and +1 neighbors work as they should. However, views -2,-3, +2,+3 are not displayed correctly.

The size of the lines is defined by the LineWidth property and I bind it. This property is then updated in the Layout_SizeChanged function.

It seems to be updated everywhere since I'm posting it in a label. However, I don't know why, the sizes are not updated in certain carouselviews.

Did I make a code error?

Thanks for your help.

Steps to Reproduce

  1. Download and open the project with the last version of visual studio (17.10.0 Preview 2.0) : https://github.com/Vannoctar2/ReportBugMaui
  2. Launch App.xaml.cs
  3. Click on the left or right arrow

Expected Behavior

image

I want this view inside all pages.

Actual Behavior

image On 5th page or on the first page.

image On page +2 or +3.

Thank you!