# CardView **Repository Path**: lanicon/CardView ## Basic Information - **Project Name**: CardView - **Description**: CardsView | CarouselView | CoverflowView | CubeView for Xamarin.Forms 🇧🇾 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-10-19 - **Last Updated**: 2024-05-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

## GIF
CardsView CarouselView CoverFlowView CubeView
ScaleFactor & OpacityFactor ScaleFactory & OpacityFactor [2] TabsControl
* CoverFlowView sample: https://github.com/AndreiMisiukevich/CardView/blob/master/PanCardViewSample/PanCardViewSample/Views/CoverFlowSampleXamlView.xaml * CarouselView sample: https://github.com/AndreiMisiukevich/CardView/blob/master/PanCardViewSample/PanCardViewSample/Views/CarouselSampleXamlView.xaml * CubeView sample: https://github.com/AndreiMisiukevich/CardView/blob/master/PanCardViewSample/PanCardViewSample/Views/CubeSampleXamlView.xaml * CardsView sample: https://github.com/AndreiMisiukevich/CardView/blob/master/PanCardViewSample/PanCardViewSample/Views/CardsSampleView.cs ## Setup * Available on NuGet: [CardsView](http://www.nuget.org/packages/CardsView) [![NuGet](https://img.shields.io/nuget/v/CardsView.svg?label=NuGet)](https://www.nuget.org/packages/CardsView) * Add nuget package to your Xamarin.Forms .NETSTANDARD/PCL project and to your platform-specific projects * Add (**AFTER** ```Forms.Init(...)```): - **CardsViewRenderer.Preserve()** AppDelegate in **FinishedLaunching** for **iOS** - **CardsViewRenderer.Preserve()** MainActivity in **OnCreate** for **Android** |Platform|Version| | ------------------- | :-----------: | |Xamarin.iOS|iOS 7+| |Xamarin.Mac|All| |Xamarin.Android|API 15+| |Windows 10 UWP|10+| |Tizen|4.0+| |Gtk|All| |WPF|.NET 4.5| |.NET Standard|2.0+| **C#:** -> Create CardsView and setup it ```csharp var cardsView = new CardsView { ItemTemplate = new DataTemplate(() => new ContentView()) //your template }; cardsView.SetBinding(CardsView.ItemsSourceProperty, nameof(PanCardSampleViewModel.Items)); cardsView.SetBinding(CardsView.SelectedIndexProperty, nameof(PanCardSampleViewModel.CurrentIndex)); ``` -> Optionaly you can create ViewModel... or not... as you wish -> Indicators bar (For CarouselView, perhaps). It's easy to add indicators -> Just add IndicatorsControl into your carouselView as a child view. ```csharp carouselView.Children.Add(new IndicatorsControl()); ``` **XAML:** ```xml ``` Also you are able to manage **IndicatorsControl** appearing/disappearing. For example if user doesn't select new page during N miliseconds, the indicators will disappear. Just set ToFadeDuration = 2000 (2 seconds delay before disappearing) Yoy manage **LeftArrowControl** and **RightArrowControl** as well as IndicatorsControl (ToFadeDuration is presented too). Indicators styling: ``` xml ... ``` if you want to add items directly through xaml ``` xml ...