Skip to main content

StyledElement Properties

Properties

ActualThemeVariantGets the UI theme that is currently used by the element, which might be different than the RequestedThemeVariantProperty.
ClassesGets or sets the styled element's classes.
DataContextGets or sets the control's data context.
InheritanceParentGets or sets the parent object that inherited AvaloniaProperty values are inherited from.
(Inherited from AvaloniaObject)
IsInitializedGets a value that indicates whether the element has finished initialization.
Item(AvaloniaProperty)Gets or sets the value of a AvaloniaProperty.
(Inherited from AvaloniaObject)
Item(IndexerDescriptor)Gets or sets a binding for a AvaloniaProperty.
(Inherited from AvaloniaObject)
LogicalChildrenGets the styled element's logical children.
NameGets or sets the name of the styled element.
ParentGets the styled element's logical parent.
PseudoClassesGets the Classes collection in a form that allows adding and removing pseudoclasses.
ResourcesGets or sets the styled element's resource dictionary.
StyleKeyGets the type by which the element is styled.
StyleKeyOverrideGets the type by which the element is styled.
StylesGets the styles for the styled element.
TemplatedParentGets the styled element whose lookless template this styled element is part of.
ThemeGets or sets the theme to be applied to the element.
TransitionsGets or sets the property transitions for the control.
(Inherited from Animatable)

See Also

Reference

StyledElement Class
Avalonia Namespace