添加项目文件。
This commit is contained in:
47
MvdLiteSnoop/Window1.xaml.cs
Normal file
47
MvdLiteSnoop/Window1.xaml.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
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" }
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user