Bug 41472 - Picker will not display selected element when navigating with keyboard when inside a TableView.ViewCell
Summary: Picker will not display selected element when navigating with keyboard when i...
Status: CONFIRMED
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.2.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-06-02 23:28 UTC by Carlos
Modified: 2016-06-06 18:57 UTC (History)
2 users (show)

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


Attachments
Contains XAML code showing the issue (1.80 KB, application/xaml+xml)
2016-06-02 23:28 UTC, Carlos
Details
Repro project (6.73 MB, application/x-zip-compressed)
2016-06-06 18:49 UTC, E.Z. Hart [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 for Bug 41472 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Carlos 2016-06-02 23:28:41 UTC
Created attachment 16183 [details]
Contains XAML code showing the issue

A picker created inside a TableView will not show the content that is currently selected when navigating the content using the keyboard. This seems to only happen with UWP project app running on Windows 10 device. I also found a workaround by binding a label at the same level than the picker even if the view that is binding is not visible. The workaround won't work if bound outside of the TableView. Attached to this bug is a XAML page showing the issue. Here is a snipped of the XAML page:

  <StackLayout>
    <Label Text="{Binding Source={x:Reference pickerOut}, Path=SelectedIndex,StringFormat='The picker outside of TableView has index={0}'}" />
    <Picker x:Name="pickerOut">
      <Picker.Items>
        <x:String>Out - A</x:String>
        <x:String>Out - B</x:String>
        <x:String>Out - C</x:String>
      </Picker.Items>
    </Picker>

    <Label Text="{Binding Source={x:Reference pickerIn}, Path=SelectedIndex,StringFormat='The picker inside of TableView has index={0}'}" />

    <TableView Intent="Settings" HasUnevenRows="True">
      <TableRoot>
        <TableSection Title="TableView">
          <ViewCell>
            <ViewCell.View>
              <StackLayout>
                <!--Uncomment the line bellow to have a workaround :-)-->
                <!--<Label Text="{Binding Source={x:Reference pickerIn}, Path=SelectedIndex,StringFormat='The picker inside of TableView has index={0}'}" IsVisible="False"/>-->
                <Picker x:Name="pickerIn">
                  <Picker.Items>
                    <x:String>In - A</x:String>
                    <x:String>In - B</x:String>
                    <x:String>In - C</x:String>
                  </Picker.Items>
                </Picker>
              </StackLayout>
            </ViewCell.View>
          </ViewCell>
        </TableSection>
      </TableRoot>
    </TableView>
  </StackLayout>
Comment 1 E.Z. Hart [MSFT] 2016-06-06 18:49:12 UTC
Created attachment 16205 [details]
Repro project
Comment 2 E.Z. Hart [MSFT] 2016-06-06 18:52:03 UTC
Confirmed in 2.2.0.45