DropDownButton
Description
Use DropDownButton when all available actions live in the flyout.
Open flyout
Example usage
- XAML
- C#
<fluence:DropDownButton Content="New">
<fluence:DropDownButton.Flyout>
<StackPanel>
<fluence:Button Content="Document" Command="{Binding NewDocumentCommand}" />
<fluence:Button Content="Folder" Command="{Binding NewFolderCommand}" />
</StackPanel>
</fluence:DropDownButton.Flyout>
</fluence:DropDownButton>
var button = new Fluence.Wpf.Controls.DropDownButton { Content = "New" };
Bind the two commands on the page's data context to make the flyout choices act on your content.
Key properties
| Property | Default | Purpose |
|---|---|---|
Flyout | null | Flyout shown by the button. |
FlyoutTemplate | null | Template used to create flyout content. |
DropdownCornerRadius | 8 | Rounds the drop-down surface. |
State and behavior
Opening the flyout changes the button state; light dismissal closes it.