void AddGroup(string propertyName, string title, IViewModelProxy val) { var pr = new GroupViewModelProperties(propertyName, val, this) { Title = title }; pr.Analyze(); Properties.Add(pr); }
internal GroupViewModelProperties([NotNull] string title, [NotNull] IViewModelProxy value, [NotNull] IViewPropertyValidator prValidator) : base(title, prValidator) { Title = title; this.value = value ?? throw new ArgumentNullException(nameof(value)); Properties = new ObservableCollection <ViewModelProperty>(); currentUICulture = Thread.CurrentThread.CurrentUICulture; proxy = value; proxy.PropertyViewUpdate += OnPropertyViewUpdate; proxy.PropertyChanged += OnPropertyChanged; }
public GroupViewModelProperties([NotNull] string title, [NotNull] IViewModelProxy _class) : this(title, _class, new EmptyValidator()) { }