ExtendedControls.ExtCollectionView.XForms
1.0.0
See the version list below for details.
dotnet add package ExtendedControls.ExtCollectionView.XForms --version 1.0.0
NuGet\Install-Package ExtendedControls.ExtCollectionView.XForms -Version 1.0.0
<PackageReference Include="ExtendedControls.ExtCollectionView.XForms" Version="1.0.0" />
paket add ExtendedControls.ExtCollectionView.XForms --version 1.0.0
#r "nuget: ExtendedControls.ExtCollectionView.XForms, 1.0.0"
// Install ExtendedControls.ExtCollectionView.XForms as a Cake Addin #addin nuget:?package=ExtendedControls.ExtCollectionView.XForms&version=1.0.0 // Install ExtendedControls.ExtCollectionView.XForms as a Cake Tool #tool nuget:?package=ExtendedControls.ExtCollectionView.XForms&version=1.0.0
KEY FEATURES:
• Single Item Selection • Multiple Items Selection • Vertical, Horizontal and GridLayout Items orientation • Vertical Drag And Drop • Horizontal Drag And Drop • ItemTemplate, SelectedItemTemplate • Default SelectedItemColor • Cancel Drag and Drop • OnHover DragColor • OnHoverCancel DragColor • Exhaustive EventArgs
GETTING STARTED:
Follow below instructions for a proper use of custom control.
You can find a sample at: https://github.com/Giacomo-dev-78/ExtendedSample.git You can find some preview at https://giacomoenna.wixsite.com/xamarin/post/extendedcollectionview (site under construction)
In order to make if work you have to get the proper Nuget packages.
For netstandard project search for ExtendedControls.ExtCollectionView.XForms.1.0.0.nupkg in Visual Studio Nuget Manager and install it.
For Android project search for ExtendedControls.ExtCollectionView.XForms.Android.1.0.0.nupkg package in Visual Studio Nuget Manager and install it.
For UWPproject search for ExtendedControls.ExtCollectionView.XForms.UWP.1.0.0.nupkg package in Visual Studio Nuget Manager and install it.
Now you should be ready to work with ExtendedCollectionView.
SelectionMode
Single: Allows you to select an item of the ExtendedCollectionView.
Multiple: Allows you to select more than one item of the ExtendedCollectionView.
Items Orientation
Horizontal: Items are placed horizontally.
Vertical: Items are stacked vertically.
GridLayout: Items are placed as in grid.
You can decide how many items per row just by using SpanCount property
You can also decide how much space between items just by using ItemsSpacing property
To get selectedItem(s) you can bind your property to CurrentItem property.
It will return the selecteditem in CollectionView.
Selection infos are also reported in SelectionChanging and SelectionChanged events.
With SelectedItemsChangingEventArgs you can:
Get previous selected item (PreviousElement) Get current Selected Item (CurrentElement) Cancel selection If Cancel is set to true, selection is aborted. Clicked item will be NOT selected.
With SelectedItemsChanged you can:
Get previous selected item (PreviousElement) Get current Selected Item (CurrentElement) Get a list of selected Items (only in Multiple Selection Mode, otherwise there’ll be only one item)
Drag and Drop allows you to move one item of the CollectionView to a different position. It works in Vertical and Horizontal layouts. (GridLayout is unavailable at the time being)
To enable Drag and Drop you have to set DragNDropEnabled property to True .
You can highlight intersected item while dragging, by setting OnHoverItemColor property. When the dragged item meets another item in list, last one will be colored and half matt.
You can also highlight hovered item by setting OnHoverCancelColor property. When drag and drop operation is intentionally aborted, hovered item will be colored and half matt.
In order to abort drag and drop operation you can exploit ItemIntersecting event.
IntersectionEventArgs returns:
IntersectingColumn: is the column where the hovered item resides (Horizontal Layout Mode) IntersectingRow: is the row where the hovered item resides (Vertical Layout Mode) IntersectingWith: is the item that has been hovered while dragging TranslationX: dragged item translation distance over X axis (Horizontal Layout Mode) TranslationY: dragged item translation distance over Y axis (Vertical Layout Mode) Cancel: if set to True, drag over intersecting item is aborted (dragged item is set back to it’s starting position when drag is released)
ItemDragStarted event is fired when drag operation is started.
DragStartedEventArgs returns:
StartColumn: is the column where drag operation starts (Horizontal Layout Mode) StartRow: is the row where drag operation starts (Vertical Layout Mode) X: item drag start postion over X axis (Horizontal Layout Mode) Y: item drag start postion over Y axis (Vertical Layout Mode)
ItemDropped event is fired once drag operation is relased.
DropEventArgs returns:
DropColumn: the column where the item is released (Horizontal Layout Mode) DropRow: the row where the item is released (Vertical Layout Mode) DropPointX: the point in X axis where the item is placed after drag release (Horizontal Layout Mode) DropPointY: the point in Y axis where the item is placed after drag release (Vertical Layout Mode)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Xamarin.Forms (>= 4.6.0.847)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
1.0.21 | 3,901 | 3/18/2021 | |
1.0.20 | 962 | 3/17/2021 | |
1.0.19 | 920 | 3/16/2021 | |
1.0.18 | 948 | 3/14/2021 | |
1.0.17 | 989 | 2/13/2021 | |
1.0.16 | 1,728 | 1/28/2021 | |
1.0.15 | 962 | 1/26/2021 | |
1.0.14 | 954 | 1/24/2021 | |
1.0.13 | 1,033 | 1/24/2021 | |
1.0.12 | 956 | 1/9/2021 | |
1.0.10 | 1,008 | 12/31/2020 | |
1.0.9 | 1,131 | 12/31/2020 | |
1.0.8 | 1,060 | 10/12/2020 | |
1.0.7 | 1,143 | 7/11/2020 | |
1.0.6 | 1,143 | 7/8/2020 | |
1.0.5 | 1,065 | 7/7/2020 | |
1.0.4 | 1,063 | 7/4/2020 | |
1.0.2 | 1,132 | 6/20/2020 | |
1.0.0 | 1,066 | 6/14/2020 |
Platforms: Android - UWP