私は以下のコードでItemsSource
a から aをバインドしていますObservableCollection
Services.RestServices.GetNotifications(UserID, ++Page).ContinueWith((task) =>
{
Dispatcher.BeginInvoke((Action)(() =>
{
setNotListToBind(task.Result).ContinueWith(t =>
{
Dispatcher.BeginInvoke((Action)(() =>
{
var list = getFilteredNotList(notList, NotificationCategories.requests);
Dispatcher.BeginInvoke(() => NotificationContainer.ItemsSource = list;);
}));
});
}));
});
上記のコードではtask-parallel-library
、実行を待機するために使用しており、その中で を にバインドしitemsSource
ていますdispature
が、UI
バインド後に更新していません。
ここに私のitemsSource
ものNotificationContainer
とObservableCollection
はlist