ComboBox 在 windows pone 8.0 中不显示值

ComboBox not displaying value in windows pone 8.0

我正在尝试显示组合框中所有项目的值。 运行 emulator.In 添加后,项目显示为列表,组合框无法单击 select 项目。

 <ComboBox FontWeight="Bold" x:Name="FStyle" HorizontalAlignment="Left" Margin="192,435,0,0" VerticalAlignment="Top" Height="27" Width="154" SelectionChanged="FStyle_SelectionChanged">
              <ComboBoxItem Content="Normal"/>
              <ComboBoxItem Content="Italic" />

  </ComboBox>

可能是什么问题。

也许这很愚蠢但是...

删除那个 killing margin 并将 Height 设置为 auto,这也是将来永远不要对 Height 和 Width 进行硬编码的一般提示,而是尝试在容器控件中定位控件。

祝你好运。