public StyleBase(string identifier) { identifier.ThrowIfNull(); Identifier = identifier; // Create the palette during constructor var builder = new StyleBuilder(); BuildStyle(builder); _properties = builder.Build(); }
/// <summary> /// Creates the <see cref="ColorPalette"/> itself. Gets automatically called in the constructor. /// </summary> /// <param name="builder">The builder to which the colors have to be added.</param> public abstract void BuildStyle(StyleBuilder builder);