ThemeVariant Constructor
Creates a new instance of the ThemeVariant
Definition
Namespace: Avalonia.Styling
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
 - VB
 - F#
 
public ThemeVariant(
	Object key,
	ThemeVariant? inheritVariant
)
Public Sub New ( 
	key As Object,
	inheritVariant As ThemeVariant
)
new : 
        key : Object * 
        inheritVariant : ThemeVariant -> ThemeVariant
Parameters
- Object
 - Key of the theme variant by which variants are compared.
 - ThemeVariant
 - Reference to a theme variant which should be used, if resource wasn't found for the requested variant.
 
Exceptions
| ArgumentException | Thrown if inheritVariant is a reference to the Default which is ambiguous value to inherit. | 
| ArgumentNullException | Thrown if key is null. |