Skip to main content

StyledProperty<TValue> Class

A styled avalonia property.

Definition

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

public class StyledProperty<TValue> : AvaloniaProperty<TValue>

View Source
InheritanceObjectAvaloniaPropertyAvaloniaProperty(TValue) → StyledProperty(TValue)
DerivedAvalonia.AttachedProperty(TValue)

Type Parameters

Properties

ChangedGets an observable that is fired when this property changes on any AvaloniaObject instance.
(Inherited from AvaloniaProperty(TValue))
InheritsGets a value indicating whether the property inherits its value.
(Inherited from AvaloniaProperty)
IsAttachedGets a value indicating whether this is an attached property.
(Inherited from AvaloniaProperty)
IsDirectGets a value indicating whether this is a direct property.
(Inherited from AvaloniaProperty)
IsReadOnlyGets a value indicating whether this is a readonly property.
(Inherited from AvaloniaProperty)
NameGets the name of the property.
(Inherited from AvaloniaProperty)
OwnerTypeGets the type of the class that registered the property.
(Inherited from AvaloniaProperty)
PropertyTypeGets the type of the property's value.
(Inherited from AvaloniaProperty)
ValidateValueA method which returns "false" for values that are never valid for this property.

Methods

AddOwner(TOwner)(StyledPropertyMetadata(TValue))Registers the property on another type.
Bind()Returns a binding accessor that can be passed to AvaloniaObject's [] operator to initiate a binding.
(Inherited from AvaloniaProperty)
CoerceValue(AvaloniaObject, TValue) 
Equals(AvaloniaProperty)Indicates whether the current object is equal to another object of the same type.
(Inherited from AvaloniaProperty)
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from AvaloniaProperty)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetDefaultValue(AvaloniaObject)Gets the default value for the property on the specified object.
GetDefaultValue(Type)Gets the default value for the property on the specified type.
GetHashCode()Serves as the default hash function.
(Inherited from AvaloniaProperty)
GetMetadata(AvaloniaObject)Gets the AvaloniaPropertyMetadata which applies to this property when it is used with the specified object.
GetMetadata(Type)Gets the AvaloniaPropertyMetadata which applies to this property when it is used with the specified type.
GetMetadata(T)()Gets the AvaloniaPropertyMetadata which applies to this property when it is used with the specified type.
(Inherited from AvaloniaProperty)
GetType()Gets the Type of the current instance.
(Inherited from Object)
IsValidValue(Object)Checks whether the value is valid for the property.
(Inherited from AvaloniaProperty)
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
OverrideDefaultValue(Type, TValue)Overrides the default value for the property on the specified type.
OverrideDefaultValue(T)(TValue)Overrides the default value for the property on the specified type.
OverrideMetadata(Type, StyledPropertyMetadata(TValue))Overrides the metadata for the property on the specified type.
OverrideMetadata(T)(StyledPropertyMetadata(TValue))Overrides the metadata for the property on the specified type.
ToString()Gets the string representation of the property.
(Overrides AvaloniaProperty.ToString())
Unregister(Type)
(Inherited from AvaloniaProperty)

See Also

Reference

Avalonia Namespace