示例#1
0
 private void ItemsSourceChanged()
 {
     this.proxies = null;
     if (this.Items == null || !this.Items.Any() || this.CollectionPropertyPath == null)
     {
         return;
     }
     // Cria os proxies
     this.proxies = this.Items.Select(o =>
     {
         var proxy = new ValueProxy();
         proxy.Bind(o, this.CollectionPropertyPath);
         proxy.ValueChanged += (s, e) => this.UpdateSource();
         return(proxy);
     }).ToArray();
     this.UpdateSource();
 }