WPF: disable DropShadow / BitmapEffects for ComboBox

My WPF app is pretty slow at high resolutions when it comes to ComboBoxes. I'm sure its BitmapEffects on ComboBoxes, especially DropShadow-Effect on ItemsPanel.

How to disable or completely remove all Bitmap effects on ComboBoxes and its children?

+1
c # wpf
source share
1 answer

You can try changing the ControlTemplate ComboBox . However, I would suggest profiling first before losing a lot of time to optimize what you only suspect to be slow.

Microsoft profiling tools are very useful for profiling WPF-GUI.

I have not studied, but I do not think that MS uses BitmapEffects in its ControlTemplates . However, I have already seen a case where the use of DropShadowEffect (this is not BitmapEffect ) had a very negative effect on performance: updates inside it marked the contents of the entire screen as invalid. Using Perforator performance profiling tools , you will find and fix such problems very quickly.

+3
source share

All Articles