Skip to main content

GetDefaultValue(Type) Method

Gets the default value for the property on the specified type.

Definition​

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public TValue GetDefaultValue(
Type type
)

Parameters​

  Type
The type.

Return Value​

TValue
The default value.

Remarks​

For performance, prefer the GetDefaultValue(AvaloniaObject) overload when possible.

See Also​

Reference​

StyledProperty(TValue) Class
GetDefaultValue Overload
Avalonia Namespace