【发布时间】:2026-02-15 21:10:02
【问题描述】:
我想要如下图所示的下拉菜单:
我不知道我是如何得到它们的。我想这些是某种组合框,但我不确定。谁能帮助我并提供 xaml 代码?!谢谢。
【问题讨论】:
-
那么你最终使用/做了什么...?
标签: windows xaml drop-down-menu controls microsoft-metro
我想要如下图所示的下拉菜单:
我不知道我是如何得到它们的。我想这些是某种组合框,但我不确定。谁能帮助我并提供 xaml 代码?!谢谢。
【问题讨论】:
标签: windows xaml drop-down-menu controls microsoft-metro
我想您正在寻找 组合框:Windows 8 store controls list (MSDN)。使用方法:
<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>
【讨论】:
您必须使用 Popup。 以下链接可能对您有所帮助
http://rahulpnath.com/blog/windows-8-series-drop-down-button/
【讨论】: