.net - At a user control, when setting of DoubleBuffered = false makes sense? -
i have created user control i'm using single graphics.drawimage() paint entire content of control. "painting couldn't simpler" thought "so flickering should elliminated." flickering on repaint still there until set doublebuffered property true.
why setting of doublebuffered = false offered default value if leads flicker in case of trivial painting? why didn't lock painting mechanism @ double buffering permanently? there use case doublebuffered = false makes sense?
all standard .net framework controls double buffered default.
when create own controls custom paint logic, can specify if want use double buffering provided .net framework (doublebuffered = true or setstyle(controlstyles.optimizeddoublebuffer, true)) or not.
for own controls, should set false if want use own double buffering logic (specially animation or advanced memory management) involves class bufferedgraphicscontext.
heres link msdn describing double buffered graphics in more detail
Comments
Post a Comment