Re: Flicker, even with BufferedGraphicsContext
- From: "Glen Flexman" <Glen.Flexman@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 19 Apr 2007 10:49:40 +0100
Does this mean that we need to inherit all the controls on a form to enable double buffering?
I ask as I have a splitcontainer which holds 2 usercontrols. Each usercontrol has many panels with various controls on them. The panels are positioned at runtime and change positions based on a a user selected type. When a new type is selected you can watch the usercontrol being repainted. I've so far tried suspend/resume layout. Inheriting the panels and setting doublebuffered to true.
The user control however still has an ugly slow repaint. We're quite a way down the development path so it's too late to attempt all this in xaml.
Any ideas on how to ensure double buffering is working correctly?
"Nik Coughlin" <nrkn.com@xxxxxxxxx> wrote in message news:etpimb$o1h$1@xxxxxxxxxxx
Bob Powell [MVP] wrote:Objects that support double buffering only do so for their own drawing
surface.
Child controls have their own windows and so would need their own
double buffering turned on in order to eliminate flicker from their
surfaces.
Double buffering the form will not affect any child controls or their
own contained controls. Basically, for forms, user controls and
container controls of all types double buffering us useless.
Thanks Bob. I just (foolishly) assumed that because the doublebuffered property of child controls was protected that it must be inherited from the form.
.
- Prev by Date: Streaming image
- Next by Date: Re: How to change the size of the canvas?
- Previous by thread: Streaming image
- Next by thread: Re: Image caching and graphics resources...
- Index(es):
Relevant Pages
|