/// <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;
 }
示例#2
0
 /// <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;
 }
示例#3
0
        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);
        }
示例#4
0
        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);
        }