0
votes

I am trying to display values of all items present in a comboBox. The items are displaying as list after running the emulator.In addition, the combobox is not clickable to select an item.

 <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>

What could be the problem.

1

1 Answers

1
votes

Maybe it's stupid but ...

Remove that killing margin and set Height to auto, also as a general tip for future never hardcode Height and Width, but try to position controls in containers controls.

Good luck.