atomui/samples/AtomUI.Demo.Desktop/ShowCase/ListBoxShowCase.axaml

45 lines
1.8 KiB
Plaintext
Raw Normal View History

<UserControl
x:Class="AtomUI.Demo.Desktop.ShowCase.ListBoxShowCase"
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"
2024-06-20 17:33:25 +08:00
xmlns:atom="https://atomui.net"
2024-09-10 13:46:03 +08:00
xmlns:desktop="clr-namespace:AtomUI.Demo.Desktop"
mc:Ignorable="d">
2024-09-10 13:46:03 +08:00
<desktop:ShowCasePanel>
<desktop:ShowCaseItem
Title="Basic usage"
Description="Basic usage example.">
<atom:ListBox>
<atom:ListBoxItem>Blue</atom:ListBoxItem>
<atom:ListBoxItem>Green</atom:ListBoxItem>
<atom:ListBoxItem>Red</atom:ListBoxItem>
<atom:ListBoxItem>Yellow</atom:ListBoxItem>
</atom:ListBox>
2024-09-10 13:46:03 +08:00
</desktop:ShowCaseItem>
2024-09-10 12:46:41 +08:00
2024-09-10 13:46:03 +08:00
<desktop:ShowCaseItem
Title="Hover effect"
Description="Disabled item hover effect.">
<atom:ListBox DisabledItemHoverEffect="True">
<atom:ListBoxItem>Blue</atom:ListBoxItem>
<atom:ListBoxItem>Green</atom:ListBoxItem>
<atom:ListBoxItem>Red</atom:ListBoxItem>
<atom:ListBoxItem>Yellow</atom:ListBoxItem>
</atom:ListBox>
2024-09-10 13:46:03 +08:00
</desktop:ShowCaseItem>
2024-09-10 12:46:41 +08:00
2024-09-10 13:46:03 +08:00
<desktop:ShowCaseItem
Title="Item disabled"
Description="Disabled item.">
<atom:ListBox>
<atom:ListBoxItem>Blue</atom:ListBoxItem>
<atom:ListBoxItem>Green</atom:ListBoxItem>
<atom:ListBoxItem IsEnabled="False">Red</atom:ListBoxItem>
<atom:ListBoxItem>Yellow</atom:ListBoxItem>
</atom:ListBox>
2024-09-10 13:46:03 +08:00
</desktop:ShowCaseItem>
</desktop:ShowCasePanel>
</UserControl>