如何创建自定义下拉菜单

时间:2013-05-27 05:36:27

标签: c# wpf

enter image description here

我是WPF的新手。我想创建一个类似于此图像的下拉菜单。我不会从哪个控件开始实现ControlTemplate。

我猜这是一个带有ContextMenu的超链接。

1 个答案:

答案 0 :(得分:2)

WPF Popup control正是您所寻找的:

<Popup Name="myPopup" IsOpen="True">
    <Label Name="myLabel" Content="Language: English" 
          Background="Black" Foreground="White"/>
    <...other controls you like.../>
</Popup>
相关问题