void ItemsSource_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { if (e.Action == NotifyCollectionChangedAction.Reset) { return; } Clvw.ImportItemsSource(ItemsSource as IList); }
void CatrobatListView_Loaded(object sender, RoutedEventArgs e) { Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { Clvw.ImportItemsSource((IList)ItemsSource); ItemsSource.CollectionChanged += ItemsSource_CollectionChanged; Clvw.LayoutUpdated += Clvw_LayoutUpdated; }); }