Class DirectPropertyMetadata<TValue>
- Namespace
- Avalonia
- Assembly
- Avalonia.Base.dll
Metadata for direct avalonia properties.
public class DirectPropertyMetadata<TValue> : AvaloniaPropertyMetadata, IDirectPropertyMetadata
Type Parameters
TValue
- Inheritance
-
DirectPropertyMetadata<TValue>
- Implements
- Inherited Members
Constructors
DirectPropertyMetadata(TValue, BindingMode, bool?)
Initializes a new instance of the StyledPropertyMetadata<TValue> class.
public DirectPropertyMetadata(TValue unsetValue = default, BindingMode defaultBindingMode = BindingMode.Default, bool? enableDataValidation = null)
Parameters
unsetValue
TValueThe value to use when the property is set to UnsetValue
defaultBindingMode
BindingModeThe default binding mode.
enableDataValidation
bool?Whether the property is interested in data validation.
Properties
UnsetValue
Gets the value to use when the property is set to UnsetValue.
public TValue UnsetValue { get; }
Property Value
- TValue
Methods
GenerateTypeSafeMetadata()
Gets a copy of this object configured for use with any owner type.
public override AvaloniaPropertyMetadata GenerateTypeSafeMetadata()
Returns
Remarks
For example, delegates which receive the owner object should be removed.
Merge(AvaloniaPropertyMetadata, AvaloniaProperty)
Merges the metadata with the base metadata.
public override void Merge(AvaloniaPropertyMetadata baseMetadata, AvaloniaProperty property)
Parameters
baseMetadata
AvaloniaPropertyMetadataThe base metadata to merge.
property
AvaloniaPropertyThe property to which the metadata is being applied.