mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-03-03 00:00:55 +08:00
15 lines
412 B
C#
15 lines
412 B
C#
using System.Collections.ObjectModel;
|
|
using System.Linq;
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
namespace Semi.Avalonia.Demo.ViewModels;
|
|
|
|
public class TabControlDemoViewModel: ObservableObject
|
|
{
|
|
public ObservableCollection<string> Items { get; set; }
|
|
|
|
public TabControlDemoViewModel()
|
|
{
|
|
Items = new ObservableCollection<string>(Enumerable.Range(1, 200).Select(a => "Tab " + a));
|
|
}
|
|
} |