Bug 42631 - [Android] Dialog.setCanceledOnTouchOutside not handled in Xamarin.Forms.Picker
Summary: [Android] Dialog.setCanceledOnTouchOutside not handled in Xamarin.Forms.Picker
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.2.0
Hardware: Macintosh Mac OS
: Normal enhancement
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-07-18 14:39 UTC by Sergio Paganoni
Modified: 2016-12-01 19:53 UTC (History)
3 users (show)

Tags: ac
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:

Description Sergio Paganoni 2016-07-18 14:39:05 UTC
On Android, when pressing outside the picker dialog, the dialog closes without raising any event.

One may need to handle such event (similar to a "Cancel" event -> Focus event) to change UI stuffs.

My proposed solution would be 
1) Expose the setCanceledOnTouchOutside so that one may choose if the generated dialog can be dismissed on outside tap
2) If cancel on touch outside is enable either expose a separate event or at least raise a Focused event (false) so that one can handle such situation

Comment 1 Sergio Paganoni 2016-07-22 12:00:33 UTC
This pull request seems to address this very issue: https://github.com/xamarin/Xamarin.Forms/pull/264
Comment 2 Samantha Houts [MSFT] 2016-12-01 19:53:49 UTC
Should be included in 2.3.2-pre1. Thank you!