codematrix
codematrix

Reputation: 1621

WPF ControlTrigger IsMouseOver

When I try to change image for WPF trigger 'IsMouseOver' for button, the control flickers a lot.. Is there any workaround for this issue?

Upvotes: 3

Views: 820

Answers (2)

AgentFire
AgentFire

Reputation: 9800

Use relative-binding and find the more deep ancenstor, which has to have permanent IsMouseOver property.

Upvotes: 1

Brian R. Bondy
Brian R. Bondy

Reputation: 347586

Check if the image is already set to what you're setting it to. If it is set to what you're setting it to then don't set it again.

Upvotes: 0

Related Questions