Files
SzmediTools/MvdLiteSnoop/Window1.xaml.cs
2025-09-16 16:06:41 +08:00

48 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
namespace MvdLiteSnoop
{
/// <summary>
/// Window1.xaml 的交互逻辑
/// </summary>
public partial class Window1 : Window
{
public Window1()
{
DataContext = this;
InitializeComponent();
}
public List<string> TypeList { get; set; } = new List<string>
{
"TypeA",
"TypeB",
"TypeC"
};
public ObservableCollection<RowItem> Items { get; set; } = new ObservableCollection<RowItem>
{
new RowItem { Name = "Item1", IsActive = true, Type = "TypeA" },
new RowItem { Name = "Item1", IsActive = true, Type = "TypeA" },
new RowItem { Name = "Item1", IsActive = true, Type = "TypeA" },
new RowItem { Name = "Item2", IsActive = false, Type = "TypeB" },
new RowItem { Name = "Item2", IsActive = false, Type = "TypeB" },
new RowItem { Name = "Item2", IsActive = false, Type = "TypeB" },
new RowItem { Name = "Item2", IsActive = false, Type = "TypeB" },
new RowItem { Name = "Item3", IsActive = true, Type = "TypeC" }
};
}
}