In This Article

VariantSet Class

Defines a set of multiple SizeVariant entries that should be applied together at the same time.

public class VariantSet : VariantBase
Inheritance:
object AvaloniaObject VariantBase object

Constructors

VariantSet()

Initializes a new instance of the class.

public VariantSet()

VariantSet(params SizeVariant[])

Initializes a new instance of the class and populates SizeVariants with the given variants.

public VariantSet(params SizeVariant[] variants)
Parameter Type Description
variants SizeVariant[]

The collection of variants.

VariantSet(IEnumerable<SizeVariant>)

Initializes a new instance of the class and populates SizeVariants with the given variants.

public VariantSet(IEnumerable<SizeVariant> variants)
Parameter Type Description
variants IEnumerable<SizeVariant>

The collection of SizeVariant objects.

Properties

SizeVariants

The collection of SizeVariant objects contained in this set.

[Content]
public SizeVariantCollection SizeVariants { get; set; }

Property Value

SizeVariantCollection:

The default value is an empty collection.

Fields

SizeVariantsProperty

Defines the SizeVariants property.

public static readonly StyledProperty<SizeVariantCollection> SizeVariantsProperty

Inherited Members

Extension Methods