GetDefaultValue(Type) Method
Gets the default value for the property on the specified type.
Definition
Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public TValue GetDefaultValue(
Type type
)
Public Function GetDefaultValue (
type As Type
) As TValue
member GetDefaultValue :
type : Type -> 'TValue
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