Open Hanebu opened 5 years ago
I profiled the demo app you uploaded to see where the slowness was coming from.
it appears the slowness is coming from the rendering of the xaml. I tried changing the numeric up downs to textblocks and performance improved greatly.
I did try the wpf toolkits integer updown instead of the one used in the sample the performance was not bad. I did not profile it.
I have 3 Views (ViewA, ViewB, ViewC) besides the ShellView, where I navigate to using MahApps.Metro Hamburger Menu.
However switching between ViewA and ViewB is very smooth. Those Views only contain a few Textblocks. If I navigate to ViewC, which contains 7 ListViews with multiple custom ListViewItems, the whole UI freezes for a couple of seconds. Depending on how many items there are to display. The UI even freezes when I switch from ViewC to ViewA or ViewB.
So my guess is, that the rendering of the ListViewItems takes a long time, but why does "leaving" the screen also freeze the UI? What am I doing wrong? I have no idea in which direction I should go...
I made a repo which shows this behaviour. Click me. I greatly appreciate all input and help.