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(); } }
protected override void UpdateLayout() { base.UpdateLayout(); RealControl.Draw(Control.Geometry); }