Table of Contents

Class StyleSlotRecipe

Namespace
Velvet
Assembly
Velvet.Docs.dll

Companion to StyleRecipe for components whose variants must drive class names across several independently-styled parts (e.g. a trigger and its listbox) at once, keeping every slot's classes in sync under the same variant selection instead of duplicating a StyleRecipe per part.

public sealed class StyleSlotRecipe
Inheritance
object
StyleSlotRecipe

Constructors

StyleSlotRecipe(Dictionary<string, string>)

Recipe without variants.

StyleSlotRecipe(Dictionary<string, string>, Dictionary<string, Dictionary<string, Dictionary<string, string>>>, Dictionary<string, string>?, SlotCompoundVariant[]?)

Recipe with variant axes.

Methods

Apply()

Returns class names for all slots without selecting any variants.

Apply(params (string axis, string value)[])

Returns class names for all slots with the given variant selections.