/// <summary> /// Initialize a new instance of the PaletteBorderEdge class. /// </summary> /// <param name="inherit">Source for inheriting defaulted values.</param> /// <param name="needPaint">Delegate for notifying paint requests.</param> public PaletteBorderEdgeRedirect(IPaletteBorder inherit, NeedPaintHandler needPaint) : base(null, needPaint) { // Remember inheritance _inherit = inherit; // Default properties _borderWidth = -1; // Create the helper object that passes background // requests from the base clas and converts them into // border requests on ourself. _translate = new BackToBorder(this); SetInherit(_translate); }