Bug 44056

Summary: Picker Focused/Unfocused events not fired on iOS 10 preview
Product: Forms Reporter: tricia.dipiazza
Component: FormsAssignee: Bugzilla <bugzilla>
Status: VERIFIED FIXED    
Severity: major CC: adrianknight89, alan.spires, jas, parmendrak, paul.dipietro
Priority: Normal    
Version: 2.3.1   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS   
Tags: ac Is this bug a regression?: ---
Last known good build:

Description tricia.dipiazza 2016-09-07 15:38:29 UTC
When a picker is dismissed by tapping "Done", the unfocused event never fires. Additionally, the picker doesn't animate gracefully out of the view hierarchy - it just vanishes.


using Xamarin.Forms;

namespace pickertest
{
	public partial class pickertestPage : ContentPage
	{
		public pickertestPage()
		{
			InitializeComponent();

			this.Picker.Focused += (object sender, FocusEventArgs e) => {

                        // Never executed
				System.Diagnostics.Debug.WriteLine("focus!");
			};

			this.Picker.Unfocused += (object sender, FocusEventArgs e) => {

                        // Never executed
				System.Diagnostics.Debug.WriteLine("unfocus!");
			};
		}
	}
}
Comment 1 Parmendra Kumar 2016-09-21 18:19:13 UTC
I have checked this issue with Xamarin.Forms 2.3.3.152-pre2 and observed that this issue working fine with iOS10
Screencast: http://www.screencast.com/t/SGsByz5yHkdx

But I am still getting same issue with Android
Screencast: http://www.screencast.com/t/85lVnDCbnTcH

Hence I am change the status as confirm with respect to Android.

Thanks.

SampleProject: https://www.dropbox.com/s/icl1e7m8g1291vo/pickertestPage.zip?dl=0
Comment 2 adrianknight89 2016-10-13 05:17:47 UTC
I think this needs to be closed.

https://github.com/xamarin/Xamarin.Forms/pull/339
Comment 3 Parmendra Kumar 2016-10-13 12:07:00 UTC
I have again checked this issue with Xamarin.Forms 2.3.3.152-pre2 and observed that this issue is working fine on both Android and iOS.

Hence closing this issue.