We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 664aaf6 commit 1b23964Copy full SHA for 1b23964
src/Uno.UI/UI/Xaml/Controls/Primitives/CarouselPanel.netstd.cs
@@ -12,6 +12,10 @@ public partial class CarouselPanel : VirtualizingPanel
12
public CarouselPanel()
13
{
14
_layout.Initialize(this);
15
+
16
+ // Set CacheLength small to somewhat resemble the UWP CarouselPanel. Note that CarouselPanel doesn't expose a configurable
17
+ // CacheLength - Uno's CarouselPanel is borrowing the ItemsStackPanel virtualization strategy.
18
+ _layout.CacheLength = 0.5;
19
}
20
21
protected override Size MeasureOverride(Size availableSize) => _layout.MeasureOverride(availableSize);
0 commit comments