protected override void OnRenderSizeChanged(SizeChangedInfo sizeInfo) { base.OnRenderSizeChanged(sizeInfo); UpdateBoundaries(); Designer.AdjustGradientColor(this, Background); Designer.AdjustGradientColor(this, BorderBrush); }