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 VariantBase object

Constructors

VariantSet()

Initializes a new instance of the VariantSet class.

public VariantSet()

VariantSet(params SizeVariant[])

Initializes a new instance of the VariantSet 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 VariantSet 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

Gets or sets the collection of SizeVariant objects contained in this set.

public SizeVariantCollection SizeVariants { get; set; }

Property Value

SizeVariantCollection:

A SizeVariantCollection instance. The default value is an empty collection.

Methods

CreateInstanceCore()

Creates a new instance of VariantSet.

protected override Freezable CreateInstanceCore()

Returns

Freezable:

The new instance.

Fields

SizeVariantsProperty

Identifies the SizeVariants dependency property.

public static readonly DependencyProperty SizeVariantsProperty