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 an instance of the class.
public VariantSet()
VariantSet(params SizeVariant[])
Initializes an 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 an 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.
public SizeVariantCollection SizeVariants { get; set; }
Property Value
- SizeVariantCollection:
The default value is an empty collection.
Methods
CreateInstanceCore()
Creates a new instance of the freezable object.
protected override Freezable CreateInstanceCore()
Returns
- Freezable
Fields
SizeVariantsProperty
Defines the SizeVariants property.
public static readonly DependencyProperty SizeVariantsProperty