Пример #1
0
 private void Window_Loaded_1(object sender, RoutedEventArgs e) {
     DataContext = new DispVM();   
     System.Windows.Data.CollectionViewSource addressViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("addressViewSource")));
     // Load data by setting the CollectionViewSource.Source property:
     // addressViewSource.Source = [generic data source]
     System.Windows.Data.CollectionViewSource contactViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("contactViewSource")));
     // Load data by setting the CollectionViewSource.Source property:
     // contactViewSource.Source = [generic data source]
     System.Windows.Data.CollectionViewSource contactMethodViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("contactMethodViewSource")));
     // Load data by setting the CollectionViewSource.Source property:
     // contactMethodViewSource.Source = [generic data source]
     System.Windows.Data.CollectionViewSource keywordViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("keywordViewSource")));
     // Load data by setting the CollectionViewSource.Source property:
     // keywordViewSource.Source = [generic data source]
 }
Пример #2
0
 private void Window_Loaded_1(object sender, RoutedEventArgs e)
 {
     DataContext = new DispVM();
     System.Windows.Data.CollectionViewSource addressViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("addressViewSource")));
     // Load data by setting the CollectionViewSource.Source property:
     // addressViewSource.Source = [generic data source]
     System.Windows.Data.CollectionViewSource contactViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("contactViewSource")));
     // Load data by setting the CollectionViewSource.Source property:
     // contactViewSource.Source = [generic data source]
     System.Windows.Data.CollectionViewSource contactMethodViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("contactMethodViewSource")));
     // Load data by setting the CollectionViewSource.Source property:
     // contactMethodViewSource.Source = [generic data source]
     System.Windows.Data.CollectionViewSource keywordViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("keywordViewSource")));
     // Load data by setting the CollectionViewSource.Source property:
     // keywordViewSource.Source = [generic data source]
 }