Skip to main content

StyledPropertyMetadata<TValue> Class

Metadata for styled avalonia properties.

Definition​

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

public class StyledPropertyMetadata<TValue> : AvaloniaPropertyMetadata, 
IStyledPropertyMetadata

View Source
InheritanceObject → AvaloniaPropertyMetadata → StyledPropertyMetadata(TValue)
ImplementsIStyledPropertyMetadata

Type Parameters​

Constructors​

StyledPropertyMetadata(TValue)(Optional(TValue), BindingMode, Func(AvaloniaObject, TValue, TValue), Boolean)Initializes a new instance of the StyledPropertyMetadata(TValue) class.

Properties​

CoerceValueGets the value coercion callback, if any.
DefaultBindingModeGets the default binding mode for the property.
(Inherited from AvaloniaPropertyMetadata)
DefaultValueGets the default value for the property.
EnableDataValidationGets a value indicating whether the property is interested in data validation.
(Inherited from AvaloniaPropertyMetadata)
IsReadOnlyGets whether this instance is read-only and can't be modified.
(Inherited from AvaloniaPropertyMetadata)

Methods​

Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Freeze()Makes this instance read-only. No further modifications are allowed after this call.
(Inherited from AvaloniaPropertyMetadata)
GenerateTypeSafeMetadata()Gets a copy of this object configured for use with any owner type.
(Overrides AvaloniaPropertyMetadata.GenerateTypeSafeMetadata())
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
Merge(AvaloniaPropertyMetadata, AvaloniaProperty)Merges the metadata with the base metadata.
(Overrides AvaloniaPropertyMetadata.Merge(AvaloniaPropertyMetadata, AvaloniaProperty))
ToString()Returns a string that represents the current object.
(Inherited from Object)

See Also​

Reference​

Avalonia Namespace