IStyledElement Interface

Namespace
Avalonia
Interfaces
Implementing Types
graph BT Type-.->Interface0["IStyleable"] click Interface0 "/api/Avalonia.Styling/IStyleable" Type-.->Interface1["INamed"] click Interface1 "/api/Avalonia/INamed" Type-.->Interface2["IStyleHost"] click Interface2 "/api/Avalonia.Styling/IStyleHost" Type-.->Interface3["ILogical"] click Interface3 "/api/Avalonia.LogicalTree/ILogical" Type-.->Interface4["IResourceNode"] click Interface4 "/api/Avalonia.Controls/IResourceNode" Type-.->Interface5["IResourceProvider"] click Interface5 "/api/Avalonia.Controls/IResourceProvider" Type-.->Interface6["IDataContextProvider"] click Interface6 "/api/Avalonia/IDataContextProvider" Type-.->Interface7["IAvaloniaObject"] click Interface7 "/api/Avalonia/IAvaloniaObject" Type["IStyledElement"] class Type type-node Implementing0["IMenuItem"]-.->Type click Implementing0 "/api/Avalonia.Controls/IMenuItem" Implementing1["IVirtualizingPanel"]-.->Type click Implementing1 "/api/Avalonia.Controls/IVirtualizingPanel" Implementing2["ReactiveWindow<TViewModel>"]-.->Type click Implementing2 "/api/Avalonia.ReactiveUI/ReactiveWindow_1" Implementing3["TreeView"]-.->Type click Implementing3 "/api/Avalonia.Controls/TreeView" Implementing4["ScrollGestureRecognizer"]-.->Type click Implementing4 "/api/Avalonia.Input.GestureRecognizers/ScrollGestureRecognizer" Implementing5["Thumb"]-.->Type click Implementing5 "/api/Avalonia.Controls.Primitives/Thumb" Implementing6["Separator"]-.->Type click Implementing6 "/api/Avalonia.Controls/Separator" Implementing7["ComboBox"]-.->Type click Implementing7 "/api/Avalonia.Controls/ComboBox" Implementing8["UserControl"]-.->Type click Implementing8 "/api/Avalonia.Controls/UserControl" Implementing9["Decorator"]-.->Type click Implementing9 "/api/Avalonia.Controls/Decorator" Implementing10["Slider"]-.->Type click Implementing10 "/api/Avalonia.Controls/Slider" Implementing11["ContextMenu"]-.->Type click Implementing11 "/api/Avalonia.Controls/ContextMenu" Implementing12["Ellipse"]-.->Type click Implementing12 "/api/Avalonia.Controls.Shapes/Ellipse" Implementing13["OverlayLayer"]-.->Type click Implementing13 "/api/Avalonia.Controls.Primitives/OverlayLayer" Implementing14["RadioButton"]-.->Type click Implementing14 "/api/Avalonia.Controls/RadioButton" Implementing15["Control"]-.->Type click Implementing15 "/api/Avalonia.Controls/Control" Implementing16["ListBox"]-.->Type click Implementing16 "/api/Avalonia.Controls/ListBox" Implementing17["SelectingItemsControl"]-.->Type click Implementing17 "/api/Avalonia.Controls.Primitives/SelectingItemsControl" Implementing18["AdornerLayer"]-.->Type click Implementing18 "/api/Avalonia.Controls.Primitives/AdornerLayer" Implementing19["PopupRoot"]-.->Type click Implementing19 "/api/Avalonia.Controls.Primitives/PopupRoot" Implementing20["Layoutable"]-.->Type click Implementing20 "/api/Avalonia.Layout/Layoutable" Implementing21["ViewModelViewHost"]-.->Type click Implementing21 "/api/Avalonia.ReactiveUI/ViewModelViewHost" Implementing22["IMenuElement"]-.->Type click Implementing22 "/api/Avalonia.Controls/IMenuElement" Implementing23["HeaderedItemsControl"]-.->Type click Implementing23 "/api/Avalonia.Controls.Primitives/HeaderedItemsControl" Implementing24["MenuItem"]-.->Type click Implementing24 "/api/Avalonia.Controls/MenuItem" Implementing25["InputElement"]-.->Type click Implementing25 "/api/Avalonia.Input/InputElement" Implementing26["ItemsRepeater"]-.->Type click Implementing26 "/api/Avalonia.Controls/ItemsRepeater" Implementing27["ComboBoxItem"]-.->Type click Implementing27 "/api/Avalonia.Controls/ComboBoxItem" Implementing28["WrapPanel"]-.->Type click Implementing28 "/api/Avalonia.Controls/WrapPanel" Implementing29["Viewbox"]-.->Type click Implementing29 "/api/Avalonia.Controls/Viewbox" Implementing30["AutoCompleteBox"]-.->Type click Implementing30 "/api/Avalonia.Controls/AutoCompleteBox" Implementing31["TabControl"]-.->Type click Implementing31 "/api/Avalonia.Controls/TabControl" Implementing32["Menu"]-.->Type click Implementing32 "/api/Avalonia.Controls/Menu" Implementing33["DataGridRowGroupHeader"]-.->Type click Implementing33 "/api/Avalonia.Controls/DataGridRowGroupHeader" Implementing34["StackPanel"]-.->Type click Implementing34 "/api/Avalonia.Controls/StackPanel" Implementing35["TabItem"]-.->Type click Implementing35 "/api/Avalonia.Controls/TabItem" Implementing36["Interactive"]-.->Type click Implementing36 "/api/Avalonia.Interactivity/Interactive" Implementing37["ItemsPresenterBase"]-.->Type click Implementing37 "/api/Avalonia.Controls.Presenters/ItemsPresenterBase" Implementing38["ListBoxItem"]-.->Type click Implementing38 "/api/Avalonia.Controls/ListBoxItem" Implementing39["ScrollViewer"]-.->Type click Implementing39 "/api/Avalonia.Controls/ScrollViewer" Implementing40["CalendarItem"]-.->Type click Implementing40 "/api/Avalonia.Controls.Primitives/CalendarItem" Implementing41["Popup"]-.->Type click Implementing41 "/api/Avalonia.Controls.Primitives/Popup" Implementing42["DevTools"]-.->Type click Implementing42 "/api/Avalonia.Diagnostics/DevTools" Implementing43["DataGridDetailsPresenter"]-.->Type click Implementing43 "/api/Avalonia.Controls.Primitives/DataGridDetailsPresenter" Implementing44["TreeViewItem"]-.->Type click Implementing44 "/api/Avalonia.Controls/TreeViewItem" Implementing45["Shape"]-.->Type click Implementing45 "/api/Avalonia.Controls.Shapes/Shape" Implementing46["DataGridCell"]-.->Type click Implementing46 "/api/Avalonia.Controls/DataGridCell" Implementing47["VisualLayerManager"]-.->Type click Implementing47 "/api/Avalonia.Controls.Primitives/VisualLayerManager" Implementing48["ButtonSpinner"]-.->Type click Implementing48 "/api/Avalonia.Controls/ButtonSpinner" Implementing49["ProgressBar"]-.->Type click Implementing49 "/api/Avalonia.Controls/ProgressBar" Implementing50["RepeatButton"]-.->Type click Implementing50 "/api/Avalonia.Controls/RepeatButton" Implementing51["TransitioningContentControl"]-.->Type click Implementing51 "/api/Avalonia.ReactiveUI/TransitioningContentControl" Implementing52["HeaderedSelectingItemsControl"]-.->Type click Implementing52 "/api/Avalonia.Controls.Primitives/HeaderedSelectingItemsControl" Implementing53["Path"]-.->Type click Implementing53 "/api/Avalonia.Controls.Shapes/Path" Implementing54["IMenu"]-.->Type click Implementing54 "/api/Avalonia.Controls/IMenu" Implementing55["Panel"]-.->Type click Implementing55 "/api/Avalonia.Controls/Panel" Implementing56["AccessText"]-.->Type click Implementing56 "/api/Avalonia.Controls.Primitives/AccessText" Implementing57["ItemsPresenter"]-.->Type click Implementing57 "/api/Avalonia.Controls.Presenters/ItemsPresenter" Implementing58["TabStrip"]-.->Type click Implementing58 "/api/Avalonia.Controls.Primitives/TabStrip" Implementing59["DataGridRow"]-.->Type click Implementing59 "/api/Avalonia.Controls/DataGridRow" Implementing60["UniformGrid"]-.->Type click Implementing60 "/api/Avalonia.Controls.Primitives/UniformGrid" Implementing61["Spinner"]-.->Type click Implementing61 "/api/Avalonia.Controls/Spinner" Implementing62["ReversibleStackPanel"]-.->Type click Implementing62 "/api/Avalonia.Controls/ReversibleStackPanel" Implementing63["DropDown"]-.->Type click Implementing63 "/api/Avalonia.Controls/DropDown" Implementing64["ItemsControl"]-.->Type click Implementing64 "/api/Avalonia.Controls/ItemsControl" Implementing65["Calendar"]-.->Type click Implementing65 "/api/Avalonia.Controls/Calendar" Implementing66["RangeBase"]-.->Type click Implementing66 "/api/Avalonia.Controls.Primitives/RangeBase" Implementing67["DataGridRowsPresenter"]-.->Type click Implementing67 "/api/Avalonia.Controls.Primitives/DataGridRowsPresenter" Implementing68["AutoCompleteBox.BindingEvaluator<T>"]-.->Type click Implementing68 "/api/Avalonia.Controls/BindingEvaluator_1" Implementing69["TabStripItem"]-.->Type click Implementing69 "/api/Avalonia.Controls.Primitives/TabStripItem" Implementing70["GridSplitter"]-.->Type click Implementing70 "/api/Avalonia.Controls/GridSplitter" Implementing71["Polyline"]-.->Type click Implementing71 "/api/Avalonia.Controls.Shapes/Polyline" Implementing72["DataGridFrozenGrid"]-.->Type click Implementing72 "/api/Avalonia.Controls.Primitives/DataGridFrozenGrid" Implementing73["ToolTip"]-.->Type click Implementing73 "/api/Avalonia.Controls/ToolTip" Implementing74["CalendarButton"]-.->Type click Implementing74 "/api/Avalonia.Controls.Primitives/CalendarButton" Implementing75["IContentControl"]-.->Type click Implementing75 "/api/Avalonia.Controls/IContentControl" Implementing76["Rectangle"]-.->Type click Implementing76 "/api/Avalonia.Controls.Shapes/Rectangle" Implementing77["Border"]-.->Type click Implementing77 "/api/Avalonia.Controls/Border" Implementing78["DataGridRowHeader"]-.->Type click Implementing78 "/api/Avalonia.Controls.Primitives/DataGridRowHeader" Implementing79["HeaderedContentControl"]-.->Type click Implementing79 "/api/Avalonia.Controls.Primitives/HeaderedContentControl" Implementing80["NumericUpDown"]-.->Type click Implementing80 "/api/Avalonia.Controls/NumericUpDown" Implementing81["IContentPresenter"]-.->Type click Implementing81 "/api/Avalonia.Controls.Presenters/IContentPresenter" Implementing82["EmbeddableControlRoot"]-.->Type click Implementing82 "/api/Avalonia.Controls.Embedding/EmbeddableControlRoot" Implementing83["Canvas"]-.->Type click Implementing83 "/api/Avalonia.Controls/Canvas" Implementing84["RemoteWidget"]-.->Type click Implementing84 "/api/Avalonia.Controls.Remote/RemoteWidget" Implementing85["Line"]-.->Type click Implementing85 "/api/Avalonia.Controls.Shapes/Line" Implementing86["ContentPresenter"]-.->Type click Implementing86 "/api/Avalonia.Controls.Presenters/ContentPresenter" Implementing87["ScrollContentPresenter"]-.->Type click Implementing87 "/api/Avalonia.Controls.Presenters/ScrollContentPresenter" Implementing88["NativeMenuBar"]-.->Type click Implementing88 "/api/Avalonia.Controls/NativeMenuBar" Implementing89["ReactiveUserControl<TViewModel>"]-.->Type click Implementing89 "/api/Avalonia.ReactiveUI/ReactiveUserControl_1" Implementing90["CheckBox"]-.->Type click Implementing90 "/api/Avalonia.Controls/CheckBox" Implementing91["CalendarDayButton"]-.->Type click Implementing91 "/api/Avalonia.Controls.Primitives/CalendarDayButton" Implementing92["ToggleButton"]-.->Type click Implementing92 "/api/Avalonia.Controls.Primitives/ToggleButton" Implementing93["DockPanel"]-.->Type click Implementing93 "/api/Avalonia.Controls/DockPanel" Implementing94["DataGridColumnHeader"]-.->Type click Implementing94 "/api/Avalonia.Controls/DataGridColumnHeader" Implementing95["Expander"]-.->Type click Implementing95 "/api/Avalonia.Controls/Expander" Implementing96["DatePicker"]-.->Type click Implementing96 "/api/Avalonia.Controls/DatePicker" Implementing97["Track"]-.->Type click Implementing97 "/api/Avalonia.Controls.Primitives/Track" Implementing98["TextBox"]-.->Type click Implementing98 "/api/Avalonia.Controls/TextBox" Implementing99["RoutedViewHost"]-.->Type click Implementing99 "/api/Avalonia.ReactiveUI/RoutedViewHost" Implementing100["Visual"]-.->Type click Implementing100 "/api/Avalonia/Visual" Implementing101["Image"]-.->Type click Implementing101 "/api/Avalonia.Controls/Image" Implementing102["VirtualizingStackPanel"]-.->Type click Implementing102 "/api/Avalonia.Controls/VirtualizingStackPanel" Implementing103["IControl"]-.->Type click Implementing103 "/api/Avalonia.Controls/IControl" Implementing104["DrawingPresenter"]-.->Type click Implementing104 "/api/Avalonia.Controls/DrawingPresenter" Implementing105["ContentControl"]-.->Type click Implementing105 "/api/Avalonia.Controls/ContentControl" Implementing106["CarouselPresenter"]-.->Type click Implementing106 "/api/Avalonia.Controls.Presenters/CarouselPresenter" Implementing107["Button"]-.->Type click Implementing107 "/api/Avalonia.Controls/Button" Implementing108["Polygon"]-.->Type click Implementing108 "/api/Avalonia.Controls.Shapes/Polygon" Implementing109["DataGrid"]-.->Type click Implementing109 "/api/Avalonia.Controls/DataGrid" Implementing110["StyledElement"]-.->Type click Implementing110 "/api/Avalonia/StyledElement" Implementing111["TemplatedControl"]-.->Type click Implementing111 "/api/Avalonia.Controls.Primitives/TemplatedControl" Implementing112["LayoutTransformControl"]-.->Type click Implementing112 "/api/Avalonia.Controls/LayoutTransformControl" Implementing113["DataGridColumnHeadersPresenter"]-.->Type click Implementing113 "/api/Avalonia.Controls.Primitives/DataGridColumnHeadersPresenter" Implementing114["DropDownItem"]-.->Type click Implementing114 "/api/Avalonia.Controls/DropDownItem" Implementing115["WindowNotificationManager"]-.->Type click Implementing115 "/api/Avalonia.Controls.Notifications/WindowNotificationManager" Implementing116["IPanel"]-.->Type click Implementing116 "/api/Avalonia.Controls/IPanel" Implementing117["TextPresenter"]-.->Type click Implementing117 "/api/Avalonia.Controls.Presenters/TextPresenter" Implementing118["ScrollBar"]-.->Type click Implementing118 "/api/Avalonia.Controls.Primitives/ScrollBar" Implementing119["IPresenter"]-.->Type click Implementing119 "/api/Avalonia.Controls.Presenters/IPresenter" Implementing120["DataGridCellsPresenter"]-.->Type click Implementing120 "/api/Avalonia.Controls.Primitives/DataGridCellsPresenter" Implementing121["NotificationCard"]-.->Type click Implementing121 "/api/Avalonia.Controls.Notifications/NotificationCard" Implementing122["Grid"]-.->Type click Implementing122 "/api/Avalonia.Controls/Grid" Implementing123["TextBlock"]-.->Type click Implementing123 "/api/Avalonia.Controls/TextBlock" Implementing124["DataValidationErrors"]-.->Type click Implementing124 "/api/Avalonia.Controls/DataValidationErrors" Implementing125["Window"]-.->Type click Implementing125 "/api/Avalonia.Controls/Window" Implementing126["IItemsPresenter"]-.->Type click Implementing126 "/api/Avalonia.Controls.Presenters/IItemsPresenter" Implementing127["Carousel"]-.->Type click Implementing127 "/api/Avalonia.Controls/Carousel" Implementing128["WindowBase"]-.->Type click Implementing128 "/api/Avalonia.Controls/WindowBase" Implementing129["AboutAvaloniaDialog"]-.->Type click Implementing129 "/api/Avalonia.Dialogs/AboutAvaloniaDialog" Implementing130["OverlayPopupHost"]-.->Type click Implementing130 "/api/Avalonia.Controls.Primitives/OverlayPopupHost" Implementing131["MenuBase"]-.->Type click Implementing131 "/api/Avalonia.Controls/MenuBase" Implementing132["TopLevel"]-.->Type click Implementing132 "/api/Avalonia.Controls/TopLevel"

Syntax

public interface IStyledElement : IStyleable, INamed, IStyleHost, ILogical, IResourceNode, 
    IResourceProvider, IDataContextProvider, IAvaloniaObject

Events

Name Type Summary
Initialized EventHandler
Occurs when the control has finished initialization.

Properties

Name Value Summary
Classes Classes
Gets or sets the control's styling classes.
IsInitialized bool
Gets a value that indicates whether the element has finished initialization.
Parent IStyledElement
Gets the control's logical parent.

Extension Methods

Name Value Summary
Bind(AvaloniaProperty, IBinding, object) IDisposable
Binds a property on an IAvaloniaObject to an IBinding.
Find<T>(string) T
Finds a named element in an INameScope.
FindNameScope() INameScope
FindResource(object) object
Finds the specified resource by searching up the logical tree and then global styles.
Get<T>(string) T
Gets a named element from an INameScope or throws if no element of the requested name was found.
GetLogicalAncestors() IEnumerable<ILogical>
GetLogicalChildren() IEnumerable<ILogical>
GetLogicalDescendants() IEnumerable<ILogical>
GetLogicalParent() ILogical
GetLogicalParent<T>() T
GetLogicalSiblings() IEnumerable<ILogical>
GetObservable(AvaloniaProperty) IObservable<object>
Gets an observable for a AvaloniaProperty.
GetObservable<T>(AvaloniaProperty<T>) IObservable<T>
Gets an observable for a AvaloniaProperty.
GetPropertyChangedObservable(AvaloniaProperty) IObservable<AvaloniaPropertyChangedEventArgs>
Gets an observable that listens for property changed events for an AvaloniaProperty.
GetResourceObservable(object) IObservable<object>
GetSelfAndLogicalAncestors() IEnumerable<ILogical>
GetSelfAndLogicalDescendants() IEnumerable<ILogical>
GetSubject(AvaloniaProperty, BindingPriority) ISubject<object>
Gets a subject for a AvaloniaProperty.
GetSubject<T>(AvaloniaProperty<T>, BindingPriority) ISubject<T>
Gets a subject for a AvaloniaProperty.
IsLogicalParentOf(ILogical) bool
TryFindResource(object, object) bool
Tries to the specified resource by searching up the logical tree and then global styles.