SizeVariant Class
Defines a size to be applied to a target control within a Ribbon.
public class SizeVariant : VariantBase
- Inheritance:
- object VariantBase object
Constructors
SizeVariant()
Initializes an instance of the class.
public SizeVariant()
SizeVariant(string, VariantSize)
Initializes an instance of the class.
public SizeVariant(string targetKey, VariantSize size)
| Parameter | Type | Description |
|---|---|---|
| targetKey | string | The KeyProperty of the group which is the target of this definition. |
| size | VariantSize | The size to be applied to VariantSizeProperty by this definition. |
Properties
Size
The VariantSize to be applied to the target control's VariantSizeProperty by this definition.
TargetKey
The string KeyProperty of the target control for this definition.
[Localizability(LocalizationCategory.NeverLocalize)]
public string? TargetKey { get; set; }
Property Value
Methods
CreateInstanceCore()
Creates a new instance of the freezable object.
protected override Freezable CreateInstanceCore()
Returns
- Freezable
Fields
SizeProperty
Defines the Size property.
public static readonly DependencyProperty SizeProperty
TargetKeyProperty
Defines the TargetKey property.
public static readonly DependencyProperty TargetKeyProperty