user2039445
user2039445

Reputation: 273

How can I create custom dropdown menu

enter image description here

I am new to WPF. I want to create a dropdown menu similar to this image. I am not getting from which control should I start the implementation of ControlTemplate.

I guess It is a Hyperlink with a ContextMenu.

Upvotes: 2

Views: 2411

Answers (1)

David
David

Reputation: 16277

WPF Popup control is exactly what you are looking for:

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

Upvotes: 2

Related Questions