问题
I want the dropdowns like in the pictures below:
I dont know how I get them. I suppose that these are some kind of comboboxes but I am not sure. Can anyone help me and provide the xaml code?! Thanks.
回答1:
I suppose you are looking for Combo box: Windows 8 store controls list (MSDN) . To use:
<ComboBox x:Name="comboBox1" SelectionChanged="ComboBox_SelectionChanged" Width="100">
<x:String>Item 1</x:String>
<x:String>Item 2</x:String>
<x:String>Item 3</x:String>
</ComboBox>
回答2:
you would have to use Popup. Below link might help you
http://rahulpnath.com/blog/windows-8-series-drop-down-button/
回答3:
These look like ListBoxes that were placed in some popups. Callisto has a Menu control that I haven't seen, but from the name of it - it might be similar (I think you are supposed to put it in a Flyout control).
来源:https://stackoverflow.com/questions/12113739/drop-down-selection-control-windows-8-metro-xaml