Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF: Tabcontrol freezes when retrieving data in a mvvm object

$
0
0

Currently using .net framework 4.5.

I've written a WPF application which retrieves information from different systems, to create an overview of a specific computer or the computers a specific user has logged in to.

For each system, I've written a provider (AD, WMI and SCCM provider). A provider object, runs its work in the background and updates all its properties data by using INotify.

All the providers are nitted together by using a computer object, which contains a reference to all relevant systems. I've written the computerprovider, purely because of the way WPF works.

Anyhu, so far so good.

To be able to view more than one computer at the same time, I'm using tabcontrol to let the user easily switch between the computers. What I'm noticing is that WPF application freezes when I start searching one or more computers at the same time.

I'm using the dispatcher with priority Background, however, the main window is still freezing and I can't do anything in the meantime. I've used the analyze tools in visual studio in an effort to find out where the bottleneck is. I've looked at optimization advices, especially regarding Tabcontrol and virtualization, but the application is still freezing.

I'm not sure what else there is to add, so just ask freely :) I really want to see this application run more smoother than it does today, I don't mind having to rewrite or rethink how I've done things.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>