I was wondering if there is a way to change the selection mode of a list view from single to multiple and vice versa from the press of a button. I have tried binding to the ListView selection mode but this is not working. Maybe I am doing something wrong.
<ListView SelectionMode="{x:Bind SelectionMode}"/>
In my on click button code:
if (MultipleSelectionModeEnabled)
{
SelectionMode = ListViewSelectionMode.Multiple;
}
else
{
SelectionMode = ListViewSelectionMode.Single;
}