Drop-down Selection Control - Windows 8 Metro - XAML

允我心安 提交于 2020-01-12 14:26:51

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!