Fixed redrawing on MemoryTab (Same problem as CA-122425: Usability - Poor refresh rate when using the scroll-bar on the GPU tab.)

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
This commit is contained in:
Gabor Apati-Nagy 2013-12-05 13:43:55 +00:00
parent f209c47abd
commit fd6d5a3452

View File

@ -64,6 +64,18 @@ namespace XenAdmin.TabPages
List<Host> hosts = new List<Host>(); List<Host> hosts = new List<Host>();
List<VM> vms = new List<VM>(); List<VM> vms = new List<VM>();
private readonly CollectionChangeEventHandler Host_CollectionChangedWithInvoke; private readonly CollectionChangeEventHandler Host_CollectionChangedWithInvoke;
//solution from: http://stackoverflow.com/questions/2612487/how-to-fix-the-flickering-in-user-controls
protected override CreateParams CreateParams
{
get
{
var cp = base.CreateParams;
cp.ExStyle |= 0x02000000; // Turn on WS_EX_COMPOSITED
return cp;
}
}
public IXenObject XenObject public IXenObject XenObject
{ {
set set