Reputation: 1018
My wpf application was running very slow. I was using the performance profiling tools for wpf from windows and noticed my hardware IRTs per frame where very high (100+). I read in the help that this is caused by some effects. After disabling some effects i found that this was the cause...
<Border.Effect>
<DropShadowEffect Direction="45" Color="#DDDDDD"/>
</Border.Effect>
I was using this effect on all my drag and drop objects.
Now I'm looking for a similar effect that doesn't freeze the entire application. Is there any effect in .net 4.0 what I can use to achieve this?
Thank you very much
David
Upvotes: 1
Views: 2762
Reputation: 1018
Using bitmap caching in on the usercontrol also fixed the problem. Unless scaling is very important you could use this...
<UserControl x:Class="myControl"
CacheMode="BitmapCache"
>
<Grid>
</Grid>
</UserControl>
Upvotes: 2