XXX Chats

When I run this same project on Android the List View keeps displaying added items.

At the risk of derailing the intent of this thread :-) That's not true you await TASKS not "async methods"...

So I'm not sure at this point if that's just how life goes or if there's a way to ensure those don't get garbage collected... To String( ); No such issues were encountered on Android.

I'm pretty sure it applies to "Don’t mix blocking and async code" https://msdn.microsoft.com/en-us/magazine/jj991977So in Some Method if I did Then I violated async all the way. Either way I removed it from the sample to simplify the contrived sample and just awaited the Http Client call itself. Missed the point a little with your comment re removing the async/await and it working.

The main detail I find interesting is that if I use an Observable Collection it works but with a Reactive List it doesn't And thanks for pulling down the sample and running it :-) Really appreciate that!! Rather than try to work out the semantics I've just used a more "natural" style. Indeed the reactivelist List View stops responding at some point.

I don't think "async all the way" means "await" all the way .... I added the thread Id to see what was being used in the events.

I'm pretty sure it applies to "Don’t mix blocking and async code" https://msdn.microsoft.com/en-us/magazine/jj991977So in Some Method if I did Then I violated async all the way. Either way I removed it from the sample to simplify the contrived sample and just awaited the Http Client call itself. Rather than try to work out the semantics I've just used a more "natural" style. These debates have all been done to death in many forums. With the async in the subscribe the thread does change. My main application doesn't use Clear or really look like this..

The main detail I find interesting is that if I use an Observable Collection it works but with a Reactive List it doesn't And thanks for pulling down the sample and running it :-) Really appreciate that!! My interpretation of Stephen Cleary's suggestions re async all the way is to write the code using async/await where possible. Change the async execution to the following: Apologies. My main application doesn't use Clear or really look like this.. in fact my main application no longer uses Xamarin Forms and I have all of this working swimmingly with a Reactive Table View Controller....

These debates have all been done to death in many forums. Missed the point a little with your comment re removing the async/await and it working. in fact my main application no longer uses Xamarin Forms and I have all of this working swimmingly with a Reactive Table View Controller.... I had posted this issue and felt responsible for trying to provide something useful to recreate beyond an anecdote...

This allows the developer to decide when the actual tasks are going to be executing opposed to having them just execute right when you get the task back At the risk of derailing the intent of this thread :-) That's not true you await TASKS not "async methods"...

This allows the developer to decide when the actual tasks are going to be executing opposed to having them just execute right when you get the task back I don't think "async all the way" means "await" all the way ....

The problem is with the List View not refreshing the layout (at least in my case).

The items are added to the List View but they don't appear until you do something like rotate the device.

Comments Wpf mvvm listview not updating

  • ObservableCollection in WPF - C# Corner
    Reply

    Jan 8, 2013. In this article I will demonstrate how ObservableCollection works in WPF. how this works in a simple example I have a window with a Button, two TextBoxes and a ListView and each time you click the Button the text of the TextBox is added to the collection and the ListView is updated automatically. UI.…

  • New to MVVM and having a performance issue with filtering a.
    Reply

    Hey guys. Okay, so to see what I'm speaking about please watch this quick 17 seconds video of me recording my application and the visible performance problem. I only recently starting implement MVVM into my application and I'm loving it. Before this, I was using a ListView and was manually setting the.…

  • WPF Binding to an asynchronous collection Thomas Levesque's.
    Reply

    Apr 17, 2009. this collection the CollectionView raises a NotSupportedException This type of CollectionView does not support changes to its SourceCollection from a thread different from the Dispatcher thread. To illustrate this, let's take a simple example a ListBox bound to a collection of strings in the ViewModel.…