/// <summary> /// Copy constructor /// </summary> /// <param name="other"></param> public BackgroundLinearGradient(BackgroundLinearGradient other):base(other) { FirstColor = other.FirstColor; SecondColor = other.SecondColor; Angle = other.Angle; BlendFactors = other.BlendFactors; BlendPositions = other.BlendPositions; }
/// <summary> /// Copy constructor /// </summary> /// <param name="other"></param> public BackgroundLinearGradient(BackgroundLinearGradient other) : base(other) { FirstColor = other.FirstColor; SecondColor = other.SecondColor; Angle = other.Angle; BlendFactors = other.BlendFactors; BlendPositions = other.BlendPositions; }
public Header(float gradientAngle) { GradientAngle = gradientAngle; mBackground = new BackgroundLinearGradient(Color.Empty, Color.Empty, GradientAngle); BackColor = Color.FromKnownColor(KnownColor.Control); Color darkdarkControl = Utilities.CalculateLightDarkColor(BackColor, -0.2f); BorderLine darkB = new BorderLine(darkdarkControl, 1); mBorder = new RectangleBorder(darkB, darkB); }