Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

iOS ListViewRenderer Multiple Selection Edit Mode

$
0
0

Hello,

I'm working on a custom ListView to allow multiple selection of cells using ViewCell DataTemplate:

var editing = view.IsMultipleSelecting; // from CustomListView
control.AllowsMultipleSelection = editing;
control.AllowsMultipleSelectionDuringEditing = editing;

control.SetEditing(editing, true);

There is one problem that I can't get to work. When Editing mode is enabled, the cells are way Indented and I still can't find a way to work around it. I tried these options in both ListViewRenderer (OnElementPropertyChanged override) and ViewCellRenderer (GetCell override) but still no luck:

cell.IndentationWidth = 0;
cell.IndentationLevel = 0;
cell.ShouldIndentWhileEditing = false;

Please if someone can shed a light on this.

Thank you!

@JamesMontemagno


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>