Reputation: 1751
I'm trying to have a 'drop down button'.
I don't know if the is the good naming, but I need to have :
But I really have no idea how to do it, or even how this is named.
Any idea ?
Upvotes: 0
Views: 2062
Reputation: 1
Been a while, but for anyone wondering, the image drawn more accurately represents a tree hierarchy then anything else
Try "TreeView" from there its standard intuitive coding
Upvotes: 0
Reputation: 7826
There is API addition with DropDownButton in Windows 10 SDK Preview Build 17686 (line 487).
public class DropDownButton : Button
Upvotes: 0
Reputation: 3619
It's not exactly what is on your mock, but what about MenuFlyout? It's almost the same and you don't need any magic for that. Plus it feels native for UWP users:
<StackPanel>
<Button Content="Button 1">
<Button.Flyout>
<MenuFlyout>
<MenuFlyoutItem Text="Action 1"/>
<MenuFlyoutItem Text="Action 2"/>
<MenuFlyoutItem Text="Action 3"/>
</MenuFlyout>
</Button.Flyout>
</Button>
<Button Content="Button 2"/>
<Button Content="Button 3"/>
</StackPanel>
Upvotes: 3