![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | Flicker showing WPF in ElementHost I'm using hosting WPF content inside a System.Windows.Forms.Integration.ElementHost, and that's sitting inside a Win32 control that's part of a tabbed document interface. Crazy, eh? I notice a painfully obvious flicker when I do the following: 1. Update content on the WPF page while it is inactive (e.g., another document is selected) 2. *Immediately* (programmatically) activate the WPF page. The flicker I see is the *previous* WPF content (before my update) of the ElementHost. If I skip step 2 and activate the page by hand, there is no flicker. I've tried all manner of calls to SuspendLayout, ResumeLayout, and Update on the ElementHost, and yet the flicker persists. I'm working on the fastest machine known to man (well, it's real close), so expectations are high. Any help or clues pointing me to something useful would be greatly appreciated. Thanks in advance. Best regards, Mark Miller - Developer Express C# MVP |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Flicker showing WPF in ElementHost how about InvalidateVisual() or InvalidateVisual()? |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Flicker showing WPF in ElementHost That also fails to affect the flicker. Stepping through the code, the update to the WPF content all happens first, then there's the call to InvalidateVisual(), and then I activate the tab holding the WPF. I still see the old content for about 1 second, and then the new content appears. Any other ideas? Best regards, Mark Miller - Developer Express C# MVP "Lloyd Dupont" <net.galador@ld> wrote in message news:%23I9PoMGyHHA.5276@TK2MSFTNGP02.phx.gbl... how about InvalidateVisual() or InvalidateVisual()? |
My System Specs![]() |