![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | 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) |
| Guest | Re: Flicker showing WPF in ElementHost how about InvalidateVisual() or InvalidateVisual()? |
My System Specs![]() |
| | #3 (permalink) |
| Guest | 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![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| WPF flicker in ElementHost | VictorG | Avalon | 0 | 02-11-2008 08:44 PM |
| ElementHost resulting in black area before update | Erik Rönnberg | Avalon | 0 | 09-24-2007 01:32 AM |
| displaying a deserialized Page in ElementHost | Robert Ludig | Avalon | 1 | 03-23-2007 11:01 AM |
| need aero theme in ElementHost | not_a_commie | Avalon | 1 | 02-19-2007 11:48 AM |
| Strong name validation fails for ElementHost | Kevin Hoffman | Avalon | 1 | 03-07-2006 05:55 PM |