/// <summary> /// Initialize a new instance of the PaletteElementColorRedirect class. /// </summary> /// <param name="redirect">Source for inheriting values.</param> /// <param name="element">Element value.</param> /// <param name="needPaint">Delegate for notifying changes in value.</param> public PaletteElementColorRedirect(PaletteRedirect redirect, PaletteElement element, NeedPaintHandler needPaint) : base(null, needPaint) { // Setup inheritence to recover values from the redirect instance _redirect = new PaletteElementColorInheritRedirect(redirect, element); SetInherit(_redirect); }