示例#1
0
 public override System.Drawing.RectangleF GetContentRectangle(System.Drawing.RectangleF backGroundArea)
 {
     if (BorderStyle == BorderStyle.System)
     {
         return(mEquivalentPadding.GetContentRectangle(backGroundArea));
     }
     else
     {
         return(backGroundArea);
     }
 }
示例#2
0
        /// <summary>
        /// Calculate the client area where the content can be drawed, usually removing the area used by the background, for example removing a border.
        /// </summary>
        /// <returns></returns>
        public override RectangleF GetBackgroundContentRectangle(MeasureHelper measure, RectangleF backGroundArea)
        {
            backGroundArea = mBorder.GetContentRectangle(backGroundArea);

            return(base.GetBackgroundContentRectangle(measure, backGroundArea));
        }