2024-08-23 21:03:43 +08:00
|
|
|
<UserControl
|
|
|
|
x:Class="AtomUI.Demo.Desktop.ShowCase.DropdownButtonShowCase"
|
|
|
|
xmlns="https://github.com/avaloniaui"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:atom="https://atomui.net"
|
|
|
|
xmlns:showcase="clr-namespace:AtomUI.Demo.Desktop.ShowCase"
|
|
|
|
mc:Ignorable="d">
|
|
|
|
<showcase:ShowCasePanel>
|
|
|
|
<showcase:ShowCaseItem
|
|
|
|
Title="Basic"
|
|
|
|
Description="The most basic dropdown menu.">
|
2024-08-24 10:07:07 +08:00
|
|
|
<atom:DropdownButton ButtonType="Link" TriggerType="Hover">
|
2024-08-23 21:03:43 +08:00
|
|
|
Hover me
|
|
|
|
<atom:DropdownButton.DropdownFlyout>
|
2024-08-24 10:07:07 +08:00
|
|
|
<atom:MenuFlyout>
|
|
|
|
<atom:MenuItem Header="Cut" InputGesture="Ctrl+X" Icon="{atom:IconProvider Kind=ScissorOutlined}" />
|
|
|
|
<atom:MenuItem Header="Copy" InputGesture="Ctrl+C" Icon="{atom:IconProvider Kind=CopyOutlined}" />
|
|
|
|
<atom:MenuItem Header="Delete" InputGesture="Ctrl+D" Icon="{atom:IconProvider Kind=DeleteOutlined}" />
|
|
|
|
<atom:MenuItem Header="Paste">
|
|
|
|
<atom:MenuItem Header="Paste" InputGesture="Ctrl+P"
|
|
|
|
Icon="{atom:IconProvider Kind=FileDoneOutlined}" />
|
|
|
|
<atom:MenuItem Header="Paste from History" InputGesture="Ctrl+Shift+V" />
|
|
|
|
</atom:MenuItem>
|
|
|
|
</atom:MenuFlyout>
|
2024-08-23 21:03:43 +08:00
|
|
|
</atom:DropdownButton.DropdownFlyout>
|
|
|
|
</atom:DropdownButton>
|
|
|
|
</showcase:ShowCaseItem>
|
|
|
|
</showcase:ShowCasePanel>
|
|
|
|
</UserControl>
|