protected internal override int MeasureHeight()
{
int height = this.TextFont.Height + TextGapTop + TextGapBottom;
if (height < this.ButtonClose.Image.Height + ButtonGapTop + ButtonGapBottom)
height = this.ButtonClose.Image.Height + ButtonGapTop + ButtonGapBottom;
return height;
}