chore: add avalonia ListBox demo.
This commit is contained in:
1 parent
98b67b3fd5
commit
29cf68d8ec
7 files changed
+157
-58
No files matched your search
@@ -0,0 +1,25 @@
|
||||
<UserControl xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
x:Class="HandyControlDemo.UserControl.ListBoxDemo">
|
||||
<WrapPanel Margin="16">
|
||||
<ListBox Margin="16"
|
||||
Width="200"
|
||||
ItemsSource="{Binding DataList}">
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding Name}" />
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
<ListBox Margin="16"
|
||||
Width="200"
|
||||
ItemsSource="{Binding DataList}"
|
||||
Theme="{StaticResource ListBox.Small}">
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding Name}" />
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</WrapPanel>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace HandyControlDemo.UserControl;
|
||||
|
||||
public partial class ListBoxDemo : Avalonia.Controls.UserControl
|
||||
{
|
||||
public ListBoxDemo()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user