
I am creating combo boxes in the ribbon control and set the StackPanel.VariantSize="Medium" and initially the designer displays this properly such that the 2 boxes show stacked on top of each other with their labels on the left and the dropdown on the right. But as soon as I build and run the application the designer switches and puts the controls next to each other horizontally with their labels on the top and that result is what is shown on the application.
Any idea how I can force the vertically stacked layout?
Here is the XAML:
<ribbon:Group Label="Group 1">
<ribbon:StackPanel VariantSize="Medium">
<ribbon:ComboBox Label="Combo 1" Width="120"/>
<ribbon:ComboBox Label="Combo 2" Width="120"/>
</ribbon:StackPanel>
</ribbon:Group>
I could post pictures of what is happening but doesn't seem to be a way to attach it here.