mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-05-03 22:41:29 +08:00
feat: ListBox demo.
This commit is contained in:
@@ -11,18 +11,5 @@ public partial class ListBoxDemo : UserControl
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public IEnumerable Items { get; set; } = new List<Panda>
|
||||
{
|
||||
new() { Name = "Ding", IsAvailable = true },
|
||||
new() { Name = "Otter", IsAvailable = true },
|
||||
new() { Name = "Husky", IsAvailable = false },
|
||||
new() { Name = "Mr.17", IsAvailable = true },
|
||||
new() { Name = "Cass", IsAvailable = true },
|
||||
};
|
||||
}
|
||||
|
||||
internal record Panda
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public bool IsAvailable { get; set; }
|
||||
public IEnumerable Items { get; set; } = new List<string> { "Ding", "Otter", "Husky", "Mr.17", "Cass", };
|
||||
}
|
||||
Reference in New Issue
Block a user