views:

268

answers:

2

I am writing an WPF application with a menu. it needs 2 to 4 seconds to show the submenu. during that 2~4 seconds, the submenu showed in transparency state.

So here is the Question, How Can I disable the transparency state of the menu? or something to avoid the 2~4 seconds' delay?

Thanks in advance.

A: 

In the worst case scenario, you'll probably want to disable hardware acceleration at all: http://stackoverflow.com/questions/1509586

Hilton Perantunes
It really helped you? I mean, I do it as the last resource on low-end machines.
Hilton Perantunes
Yes, Thank you for your help. now i know the reason, and next i'll try Drew Noakes's method to avoid this thing.
whunmr
A: 

Is the issue because the menu fades in when clicked, but displays immediately when using a shortcut key, and the fading is slow? When I've seen problems like this, I've updated the video drivers and it's usually helped.

If you want to disable fading altogether, you could override the menu control templates and specify that the popup doesn't use any animation.

Drew Noakes
Thanks very much, I'll try that.
whunmr