Bug 21453 - Windows Phone Picker Issues
Summary: Windows Phone Picker Issues
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 1.4.2
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-07-18 20:00 UTC by Michel Chowanski
Modified: 2016-03-16 11:55 UTC (History)
11 users (show)

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


Attachments
Example Screen (32.43 KB, image/jpeg)
2014-08-20 16:13 UTC, Michel Chowanski
Details
Repro project (275.62 KB, application/zip)
2015-04-10 13:09 UTC, Jimmy [MSFT]
Details


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:
Status:
RESOLVED FIXED

Description Michel Chowanski 2014-07-18 20:00:33 UTC
Hi,

I found three issues on windows phone. I have a picker at the second tab of a tabbedpage. If I select a picker value, I will be redirect to the first tab and not to the current (second tab). 

Although, SelectedIndexChanged event fired but my picker value will be lost at content page.
And last but not least: The picker don't show the title.


On Android it's working fine. I'll append a easy code example.
Comment 1 Eric Maupin 2014-07-21 11:40:49 UTC
Can you provide a repro for this?
Comment 2 Michel Chowanski 2014-07-21 15:03:44 UTC
I have created an extra project for this bug. But it works in the special project. So the issue seems to caused by something else. I will checked it.


Only the title won't show on windows phone now. I use: 

<Picker x:Name="Filter" Title="Filter" VerticalOptions="CenterAndExpand" SelectedIndexChanged="OnFilterChanged" />
Comment 4 Seth Rosetter 2014-08-15 17:08:51 UTC
Michel, 

Are you referring to the rectangle showing the currently selected item or the Title on the pop over control with the picker items? It would be helpful if you posted a screenshot.
Comment 6 Michel Chowanski 2014-08-20 16:12:53 UTC
An example (Screenshot) in the appendix. I only see an empty box - I would expect that there ist the title (like in Android) or the first item.

My Code:
            Dictionary<string, Color> nameToColor = new Dictionary<string, Color>()
            {
                { "Aqua", Color.Aqua }, { "Black", Color.Black },
                { "Blue", Color.Blue }, { "Fuschia", Color.Fuschia },
                { "Gray", Color.Gray }, { "Green", Color.Green },
                { "Lime", Color.Lime }, { "Maroon", Color.Maroon },
                { "Navy", Color.Navy }, { "Olive", Color.Olive },
                { "Purple", Color.Purple }, { "Red", Color.Red },
                { "Silver", Color.Silver }, { "Teal", Color.Teal },
                { "White", Color.White }, { "Yellow", Color.Yellow }
            };

            var Picker = new Picker()
            {
                Title = "Use Filter ..."
            };

            foreach (string colorName in nameToColor.Keys)
            {
                Picker.Items.Add(colorName);
            }
Comment 7 Michel Chowanski 2014-08-20 16:13:12 UTC
Created attachment 7745 [details]
Example Screen
Comment 8 Jimmy [MSFT] 2015-04-10 13:08:17 UTC
Still experiencing the rectangle showing as empty instead of showing the Title property on Forms 1.4.2 so I'm updating the report and attaching a sample project.

=== Actual Results ===
The Picker control box is empty when the app is first launched and no item has been selected.


=== Expected Results ===
The control box should display the Picker’s Title property as the placeholder text to indicate to the user that it can be interacted with.


=== Environment Info ===
Microsoft Visual Studio Professional 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

Team Explorer for Visual Studio 2013   06177-004-0444002-02323
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013   06177-004-0444002-02323
Microsoft Visual Basic 2013

Visual C# 2013   06177-004-0444002-02323
Microsoft Visual C# 2013

Visual C++ 2013   06177-004-0444002-02323
Microsoft Visual C++ 2013

Visual F# 2013   06177-004-0444002-02323
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker   06177-004-0444002-02323
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Windows Phone SDK 8.0 - ENU   06177-004-0444002-02323
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   1.0
Application Insights Tools for Visual Studio

Common Azure Tools   1.3
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Microsoft Advertising SDK for Windows Phone   
Microsoft Advertising SDK for Windows Phone
Build 

Microsoft Azure Mobile Services Tools   1.3
Microsoft Azure Mobile Services Tools

Multilingual App Toolkit   3.1.1250.0
Multilingual App Toolkit helps you localize your Windows Store app by providing file management, pseudo and machine translation, translation editor, and build integration. http://go.microsoft.com/fwlink?linkid=245767

NuGet Package Manager   2.8.50926.663
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PowerShell Tools   1.3
Provides file classification services using PowerShell

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

Windows Phone 8.1 SDK Integration   1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.

Xamarin   3.9.533.0 (66489f0)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   4.20.0.38 (38ac51a9d0866c7726a7484d82632c82c8221594)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   8.8.1.0 (61fa2c6e0f2ef51eb98b8810de13b4469f379cc7)
Visual Studio extension to enable development for Xamarin.iOS.

Xamarin.iOS Unified Migration   1.0
Automated migration for Xamarin iOS Classic projects to Unified
Comment 9 Jimmy [MSFT] 2015-04-10 13:09:16 UTC
Created attachment 10714 [details]
Repro project
Comment 10 Paul Roy 2015-10-14 09:28:54 UTC
Any news on this ?
Comment 11 Jason Smith [MSFT] 2016-03-16 11:55:43 UTC
Thank you for taking the time to submit this report. After reviewing the description of this bug, we no longer believe it affects the current version of Xamarin.Forms. If you are still experiencing the issue after updating your packages, please reopen this report with an attached reproduction.
 
For your convenience, we have created some reproduction best practices viewable here: https://gist.github.com/jassmith/92405c300e54a01dcc6d

Warm regards,
Xamarin Forms Team