How to clear memory cache in WPF application
We have WPF application and there is scrollbar. We scroll and find the dynamic element(WPFListViewItem)
WPFListView(parent) and WPFListViewItem (child objects)
Using Exists method I scroll till I dont find element and everything works fine as long as scroll is vertically down but after scrolling vertically down I again need to scroll up to find second element I face issue. My code is stuck on below line and does not move forward.
Some time application stops responding and after some time becomes fine.
How to handle this?
I think I need to clear memory cache once I scroll down and need to scroll up.
Any idea how to clear memory cache?
Is this the issue or something else ?