StyleEntry
Pennington.UI.Styling
One resolved style slot: the effective class string plus the per-layer inputs that produced it.
Properties
DefaultValuestring- The Pennington.UI component default for the slot.
Effectivestring- Class string the components render.
Keystring- Slot key from
StyleKeys. OverrideValuestring- The consumer's override, when one was supplied.
SkinValuestring- The template skin's value, when the template re-skins this slot.
SourceStyleSource- Layer that determined
Effective.
Constructors
StyleEntry
#public StyleEntry(string Key, string Effective, StyleSource Source, string DefaultValue, string SkinValue, string OverrideValue)
One resolved style slot: the effective class string plus the per-layer inputs that produced it.
Parameters
Keystring- Slot key from
StyleKeys. Effectivestring- Class string the components render.
SourceStyleSource- Layer that determined
Effective. DefaultValuestring- The Pennington.UI component default for the slot.
SkinValuestring- The template skin's value, when the template re-skins this slot.
OverrideValuestring- The consumer's override, when one was supplied.
Pennington.UI.Styling.StyleEntry
namespace Pennington.UI.Styling;
/// One resolved style slot: the effective class string plus the per-layer inputs that produced it.
public record StyleEntry
{
/// The Pennington.UI component default for the slot.
public string DefaultValue { get; set; }
/// Class string the components render.
public string Effective { get; set; }
/// Slot key from StyleKeys.
public string Key { get; set; }
/// The consumer's override, when one was supplied.
public string OverrideValue { get; set; }
/// The template skin's value, when the template re-skins this slot.
public string SkinValue { get; set; }
/// Layer that determined Effective.
public StyleSource Source { get; set; }
/// One resolved style slot: the effective class string plus the per-layer inputs that produced it.
public StyleEntry(string Key, string Effective, StyleSource Source, string DefaultValue, string SkinValue, string OverrideValue)
;
}