Home > OS >  How can I do a kebab menu (three dots menu) button in WPF
How can I do a kebab menu (three dots menu) button in WPF

Time:11-10

I have an WPF app and I am trying to know what is the best way to implement a kebab menu (three dots menu) button in WPF. Similar to this:

enter image description here

or similar to this in MS Edge (but vertical):

enter image description here

I am using .NET Standard 4.5

CodePudding user response:

This works for me:

    <Button VerticalAlignment="Top"
            HorizontalAlignment="Left"
            Width="30"
            Height="30">
        <TextBlock Text="⋮"/>
    </Button> 

Or alternatively using xml format character encoding

    <Button VerticalAlignment="Top"
            HorizontalAlignment="Left"
            Width="30"
            Height="30">
        <TextBlock Text='&#8942;'/>
    </Button>
  • Related