Horrible WPF performance!
Posted
by Erik
on Stack Overflow
See other posts from Stack Overflow
or by Erik
Published on 2010-04-08T18:39:06Z
Indexed on
2010/04/08
18:43 UTC
Read the original article
Hit count: 467
wpf
|Performance
Why am i using over 80% CPU when just hovering some links? As you can see in the video i uploaded: http://www.youtube.com/watch?v=3ALF9NquTRE the CPU goes to >80% CPU when i move my mouse over the links.
My style for the items are as follows
<Style x:Key="LinkStyle" TargetType="{x:Type Hyperlink}">
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="White" />
</Trigger>
</Style.Triggers>
<Setter Property="TextBlock.TextDecorations" Value="{x:Null}" />
<Setter Property="Foreground" Value="#FFDDDDDD"/>
<Setter Property="Cursor" Value="Arrow" />
</Style>
Why?
© Stack Overflow or respective owner