В WPF XAML у меня есть
<CollectionViewSource
x:Key="aViewSource"
d:DesignSource="{d:DesignInstance my1:TableA, CreateList=True}" />
<CollectionViewSource
x:Key="anotherViewSource"
Source="{Binding Path=ANOTHER, Source={StaticResource aViewSource}}" />
В xaml.cs у меня
var aViewSource = (CollectionViewSource)this.FindResource("aViewSource");
var tableA = new ObservableCollection<TableA>(
this.entities.TableA
.Where(predicate)
.Take(10)
.ToList());
tableA.CollectionChanged += this.NotifyCollectionChangedEventHandler;
fibrasViewSource.Source = tableA;
Как я могу наблюдать anotherViewSource
?