Exemplo n.º 1
0
        protected override GraphicsPath CreateBorderRectPath(RectangleF innerBorderRect)
        {
            SizeF headerLabelSize = _headerLabel.DesiredSize;

            return(GraphicsPathHelper.CreateRoundedRectWithTitleRegionPath(innerBorderRect,
                                                                           (float)CornerRadius, (float)CornerRadius, true, HEADER_INSET_LINE,
                                                                           headerLabelSize.Width + HEADER_INSET_SPACE * 2));
        }