/// <summary> /// Gets the color border drawing style. /// </summary> /// <param name="style">Border style.</param> /// <param name="state">Palette value should be applicable to this state.</param> /// <returns>Color drawing style.</returns> public override PaletteColorStyle GetBorderColorStyle(PaletteBorderStyle style, PaletteState state) { PaletteBorderEdge inherit = GetInherit(state); if (inherit != null) { return(inherit.GetBackColorStyle(state)); } else { return(Target.GetBorderColorStyle(style, state)); } }
/// <summary> /// Gets the color border drawing style. /// </summary> /// <param name="style">Border style.</param> /// <param name="state">Palette value should be applicable to this state.</param> /// <returns>Color drawing style.</returns> public override PaletteColorStyle GetBorderColorStyle(PaletteBorderStyle style, PaletteState state) { PaletteBorderEdge inherit = GetInherit(state); return(inherit?.GetBackColorStyle(state) ?? Target.GetBorderColorStyle(style, state)); }