콘텐츠로 이동

MewProperty<T> class

이 콘텐츠는 아직 번역되지 않았습니다.

Identifies a visual property with value resolution and animation support.

public sealed class MewProperty<T> : MewProperty
parameter description
T The property value type.
name description
static Register<TOwner>(…) Registers a new property descriptor with a change callback that receives old and new values.
DefaultValue { get; } Gets the default value for this property.
override Name { get; }
override Options { get; }
override ValueType { get; }
OverrideDefaultValue<TOwner>(…) Overrides the default value of this property for a specific owner type. Call from a static constructor of the derived type.
static RegisterReadOnly<TOwner>(…) Registers a new read-only property descriptor and returns a MewPropertyKey that authorizes mutation.

Static descriptors: one instance per property, shared across all owner instances.