How to get the best result in WPF when many user interface controls are displayed?

I am developing a WPF application that at the same time runs many user interface controls and this slows down the animation, etc. Is there any way to prevent this?

+3
source share
5 answers

Without knowing more about how you load controls, it's hard to say. However, here are my tips and tricks:

  • Do not use ObservableCollection unless you are actually modifying the contents of the collection on the fly. If you can get away with the list, use this. We used the ObservableCollection as a bunch of newbies everywhere; this accelerated our application in droves.

  • Do not call PropertyChanged if the property has not really changed - compare with the previous property if you need to.

  • Consider the usability of the application. If you show that many controls are simultaneously confusing the PC, this probably confuses the user. Can you hide some of them in the expander? Put them on different tabs? Is there a way to show less information that can make the application more intuitive?

  • /​​ , , . , (. , ).

+7
+1

WPF VS2010 . WPF , .

+1

Add fewer controls, use less animations, or get a better graphics card. :)

0
source

Source: https://habr.com/ru/post/1779820/


All Articles