I can't get any combobox to display anything in the dropdown. I have tried adding them as an ItemsSource, and adding them in code.
The combobox appears to simply not work! Below is one attempt but I have tried many others.
Code: Select all
<Page
x:Class="Application3.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Application3"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<StackPanel>
<ComboBox x:Name="combo1" />
</StackPanel>
</Page>
Fill as follows
Code: Select all
public partial class MainPage : Page
{
public MainPage()
{
this.InitializeComponent();
combo1.Items.Add("Item 1");
combo1.Items.Add("Item 2");
combo1.Items.Add("Item 3");
combo1.Items.Add("Item 4");
combo1.Items.Add("Item 5");
}
}
The dropdown contains nothing.
Surely there must be some way to get it to work. It must have worked in regression testing ?!?!? What am I doing wrong here (this worked in previous versions)
How can I work around this? Please help!