Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 15051 [details]
4 source files of the Control.
I need a listview in which you can select (toggle) only 1 item, or multiple if needed. I've coded the control and put it in a Content Page as the MainPage. However, when I put it in my application, I can't have only one item selected. Here is the code of the page :
<max:MaxSwitchListView x:Name="ListViewMain" HeightRequest="200" IsMultiSelect="False" CanDeleteItems="False" />
MaxSwitchListView is basically a ListView with a custom SwitchCell into it. When the user toggles an item, the previously toggled item is deselected (SwitchCell.On = false). However, this is not working in my setup. Here is the setup :
MainPage = new NavigationPage(new TabbedPage());
In a tab of the main page, I have a button which sends the user to another Page where the above code is put as is. I tested with Navigate.PushAsync and PushModalAsync and both aren't working.
However, when I set the code above in a ContentPage as the MainPage, it works as expected.
The full code of the control is in attachment...
I repeat : The control works in the MainPage, but does not when further in my navigation setup.
Can you attach an actual full repro?
Please reopen this with a functional, minimized reproduction if the issue in question is still occurring on the latest stable release.