-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
I am using SelectorView and Switch control on a page. I am setting up AllowMultiple property of the SelectorView with the Switch toggle. When i run the application with AllowMutiple = false, SelectorView works perfectly fine and only one item can be selected in it. When i toggle the Switch to turn on multiple selection, SelectorView works perfectly fine and multiple items can be selected. When i toggle the Switch back to turn off multiple selection, Application crashes on both iOS and Android.
Steps to reproduce
- Add a page having Switch and SelectorView controls
- Added ItemList and MultiSelectEnabled properties to the page view model.
- Bind ItemList and MultiSelectEnabled to ItemsSource and AllowMultiple of SelectorView control respectively.
- Bind MultiSelectEnabled to IsToggled of Switch control.
- Run the application, toggle the Switch to turn on multiple selection and then toggle it again to turn off multiple selection.
Expected Behavior
It should turn off multiple selection and should clear up the items from SelectedItems property.
Actual Behavior
Application crashes on both iOS and Android.
Basic Information
- Version with issue: AP.MobileToolkit - 3.0.0-ci
- Xamarin.Forms version: 4.2.0.815419
- IDE: Visual Studio 2019 Professional - Version 16.3.5
Reproduction Link
Project: ToolkitDemo
Branch: issue/75/Demo-User-Controls
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working