Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Picker text disappears after selection when embedded in TableView (Windows 8.1 store project)

$
0
0

Hi,
I can't seem to figure out why a Picker's text disappears after selection on a Windows 8.1 store project when embedded in a TableView ViewCell.

Starting from this TableView example: https://github.com/xamarin/xamarin-forms-samples/tree/master/UserInterface/TableView
I added a Windows 8.1 project to the solution. As a test, I injected the following code segment into one of the implementations.

...

Picker booleanPicker = new Picker();
booleanPicker.Items.Add("Yes");  // 0
booleanPicker.Items.Add("No");   // 1
booleanPicker.SelectedIndex = 1;

var pickerCell = new ViewCell
{
    View = new StackLayout
    {
        Orientation = StackOrientation.Horizontal,
        Children =
        {
            booleanPicker
        }
    }
};

section1.Add(pickerCell);

...

This is driving me a little crazy - does anyone know what may be going on here?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>