123456789101112131415161718192021222324252627282930313233343536373839 |
- using FWindSoft.Data;
- using FWindSoft.MVVM;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Test.ValidateRule
- {
- public class VmDataGriValidation: BaseViewModel
- {
- public VmDataGriValidation()
- {
- People = new List<Person>();
- for (int i = 0; i < 10; i++)
- {
- People.Add(new Person() { Name = $"姓名{i}" });
- }
- }
- public List<Person> People { get; set; }
- }
- public class Person : BasePropertyChanged
- {
- private string m_Name;
-
- public string Name
- {
- get { return this.m_Name; }
- set
- {
- this.m_Name = value;
- RaisePropertyChanged("Name");
- }
- }
- }
- }
|