예제 #1
0
        void UpdateRadius(bool init)
        {
            CornerRadius = Element.CornerRadius;
            int topLeft     = Forms.ConvertToScaledPixel(Element.CornerRadius.TopLeft);
            int topRight    = Forms.ConvertToScaledPixel(Element.CornerRadius.TopRight);
            int bottomLeft  = Forms.ConvertToScaledPixel(Element.CornerRadius.BottomLeft);
            int bottomRight = Forms.ConvertToScaledPixel(Element.CornerRadius.BottomRight);

            if (!init)
            {
                RealControl.Draw();
            }
        }
예제 #2
0
 protected override void UpdateLayout()
 {
     base.UpdateLayout();
     RealControl.Draw(Control.Geometry);
 }