Bug 42687 - Picker IsFocused property and Focused events broken on Android
Summary: Picker IsFocused property and Focused events broken on Android
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.3.1
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-07-20 13:19 UTC by Anonymous
Modified: 2016-08-05 13:32 UTC (History)
4 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 Anonymous 2016-07-20 13:19:52 UTC
public class TestPage : ContentPage
    protected Picker picker;
    public TestPage()
        var picker = new Picker
            HorizontalOptions = LayoutOptions.FillAndExpand,
            VerticalOptions = LayoutOptions.Center,
            Items = { "One", "Two", "Three" }
        picker.SelectedIndex = 0;

        picker.Focused += PickerOnFocusChanged;
        picker.Unfocused += PickerOnFocusChanged;
        Content = picker;

    private void PickerOnFocusChanged(object sender, FocusEventArgs focusEventArgs)
        Debug.WriteLine(focusEventArgs.IsFocused ? "Focused" : "Unfocused");

Debug statement is never reached on Android.
Comment 1 Samantha Houts [MSFT] 2016-08-02 21:38:43 UTC
Should be fixed in 2.3.2-pre1. Thank you!
Comment 2 Parmendra Kumar 2016-08-05 13:32:07 UTC
I have checked this issue with Xamarin.Forms 2.3.2-pre1 and observed that this issue is working fine.

Hence closing this issue.