public Size MeasureControl(Control control)
{
Type controlType = control.GetType();
if(renderersDictionary.ContainsKey(controlType)){
var renderer = renderersDictionary[controlType] as IControlRenderer;
return renderer.Measure(context,control);
}
return default(Size);
}