示例#1
0
        public StyleBase(string identifier)
        {
            identifier.ThrowIfNull();

            Identifier = identifier;

            // Create the palette during constructor
            var builder = new StyleBuilder();

            BuildStyle(builder);

            _properties = builder.Build();
        }
示例#2
0
 /// <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);