Share via


CarouselView.VisibleViews Property

Definition

Gets the collection of views currently visible in the carousel.

public:
 property System::Collections::ObjectModel::ObservableCollection<Microsoft::Maui::Controls::View ^> ^ VisibleViews { System::Collections::ObjectModel::ObservableCollection<Microsoft::Maui::Controls::View ^> ^ get(); };
public System.Collections.ObjectModel.ObservableCollection<Microsoft.Maui.Controls.View> VisibleViews { get; }
member this.VisibleViews : System.Collections.ObjectModel.ObservableCollection<Microsoft.Maui.Controls.View>
Public ReadOnly Property VisibleViews As ObservableCollection(Of View)

Property Value

An ObservableCollection<T> of View objects that are currently visible.

Remarks

This collection is automatically updated as the user scrolls through the carousel. It includes the current item and any partially visible adjacent items based on PeekAreaInsets.

Applies to