Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.45 KB

Linear-Arrangement.md

File metadata and controls

39 lines (25 loc) · 1.45 KB
layout post
title Linear Arrangement in .NET MAUI Carousel View control | Syncfusion®
description Learn here all about Linear Arrangement support in Syncfusion® .NET MAUI Carousel View (SfCarousel) control and more.
platform maui
control Carousel
documentation ug

Linear Arrangement in .NET MAUI Carousel View (SfCarousel)

The Carousel items can be populated in the view in a stacked linear layout by setting the ViewMode property to Linear. The present option is Default.

{% tabs %}

{% highlight xaml %}

<carousel:SfCarousel x:Name="carousel"
ItemsSource="{Binding ImageCollection}" ItemTemplate="{StaticResource itemTemplate}" ViewMode="Linear"/>

{% endhighlight %}

{% highlight C# %}

SfCarousel carousel = new SfCarousel(); carousel.SetBinding(SfCarousel.ItemsSourceProperty, "ImageCollection"); carousel.ItemTemplate = itemTemplate; carousel.ViewMode = ViewMode.Linear;

{% endhighlight %}

{% endtabs %}

Linear mode