IContentPresenter Interface

Summary

Interface for controls that present a single item of data inside a TemplatedControl template.
graph TD Interface0["IPresenter"]-.->Type click Interface0 "/api/Avalonia.Controls.Presenters/IPresenter" Interface1["IControl"]-.->Type click Interface1 "/api/Avalonia.Controls/IControl" Interface2["IDataTemplateHost"]-.->Type click Interface2 "/api/Avalonia.Controls.Templates/IDataTemplateHost" Interface3["ILayoutable"]-.->Type click Interface3 "/api/Avalonia.Layout/ILayoutable" Interface4["IInputElement"]-.->Type click Interface4 "/api/Avalonia.Input/IInputElement" Interface5["IInteractive"]-.->Type click Interface5 "/api/Avalonia.Interactivity/IInteractive" Interface6["IVisual"]-.->Type click Interface6 "/api/Avalonia.VisualTree/IVisual" Interface7["IStyledElement"]-.->Type click Interface7 "/api/Avalonia/IStyledElement" Interface8["IStyleable"]-.->Type click Interface8 "/api/Avalonia.Styling/IStyleable" Interface9["IAvaloniaObject"]-.->Type click Interface9 "/api/Avalonia/IAvaloniaObject" Interface10["IStyleHost"]-.->Type click Interface10 "/api/Avalonia.Styling/IStyleHost" Interface11["ILogical"]-.->Type click Interface11 "/api/Avalonia.LogicalTree/ILogical" Interface12["IResourceNode"]-.->Type click Interface12 "/api/Avalonia.Controls/IResourceNode" Interface13["IResourceProvider"]-.->Type click Interface13 "/api/Avalonia.Controls/IResourceProvider" Interface14["INamed"]-.->Type click Interface14 "/api/Avalonia/INamed" Type["IContentPresenter"] class Type type-node Type-.->Implementing0["ContentPresenter"] click Implementing0 "/api/Avalonia.Controls.Presenters/ContentPresenter" Type-.->Implementing1["ScrollContentPresenter"] click Implementing1 "/api/Avalonia.Controls.Presenters/ScrollContentPresenter"

Syntax

public interface IContentPresenter : IPresenter, IControl, IDataTemplateHost, ILayoutable, 
    IInputElement, IInteractive, IVisual, IStyledElement, IStyleable, IAvaloniaObject, IStyleHost, 
    ILogical, IResourceNode, IResourceProvider, INamed

Events

Name Type Summary
ChildChanging EventHandler<AvaloniaPropertyChangedEventArgs>
Raised when Child property is about to change.

Properties

Name Value Summary
Child IControl
Gets the control displayed by the presenter.
Content object
Gets or sets the content to be displayed by the presenter.

Extension Methods

Name Value Summary
Bind(AvaloniaProperty, IBinding, object) IDisposable
Binds a property on an IAvaloniaObject to an IBinding.
BringIntoView() void
Tries to bring the control into view.
BringIntoView(Rect) void
Tries to bring the control into view.
CalculateDistanceFromAncestor(IVisual) int
Calculates the distance from a visual's IRenderRoot.
FindCommonVisualAncestor(IVisual) IVisual
Tries to get the first common ancestor of two visuals.
FindControl<T>(string) T
Finds the named control in the scope of the specified control.
FindDataTemplate(object, IDataTemplate) IDataTemplate
Find a data template that matches a piece of data.
FindNameScope() INameScope
FindResource(string) object
Finds the specified resource by searching up the logical tree and then global styles.
GetInputElementsAt(Point) IEnumerable<IInputElement>
Returns the active input elements at a point on an IInputElement.
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.
GetObservable<TEventArgs>(RoutedEvent<TEventArgs>, RoutingStrategies, bool) IObservable<TEventArgs>
Gets an observable for a RoutedEvent<TEventArgs>.
GetPropertyChangedObservable(AvaloniaProperty) IObservable<AvaloniaPropertyChangedEventArgs>
Gets an observable that listens for property changed events for an AvaloniaProperty.
GetResourceObservable(string) IObservable<object>
GetSelfAndLogicalAncestors() IEnumerable<ILogical>
GetSelfAndLogicalDescendants() IEnumerable<ILogical>
GetSelfAndVisualAncestors() IEnumerable<IVisual>
Enumerates an IVisual and its ancestors in the visual tree.
GetSelfAndVisualDescendants() IEnumerable<IVisual>
Enumerates an IVisual and its descendants in the visual tree.
GetSubject(AvaloniaProperty, BindingPriority) ISubject<object>
Gets a subject for a AvaloniaProperty.
GetSubject<T>(AvaloniaProperty<T>, BindingPriority) ISubject<T>
Gets a subject for a AvaloniaProperty.
GetVisualAncestors() IEnumerable<IVisual>
Enumerates the ancestors of an IVisual in the visual tree.
GetVisualAt(Point) IVisual
Gets the first visual in the visual tree whose bounds contain a point.
GetVisualChildren() IEnumerable<IVisual>
Enumerates the children of an IVisual in the visual tree.
GetVisualDescendants() IEnumerable<IVisual>
Enumerates the descendants of an IVisual in the visual tree.
GetVisualParent() IVisual
Gets the visual parent of an IVisual.
GetVisualParent<T>() T
Gets the visual parent of an IVisual.
GetVisualRoot() IRenderRoot
Gets the root visual for an IVisual.
GetVisualsAt(Point) IEnumerable<IVisual>
Enumerates the visible visuals in the visual tree whose bounds contain a point.
GetVisualsAt(Point, Func<IVisual, bool>) IEnumerable<IVisual>
Enumerates the visuals in the visual tree whose bounds contain a point.
InputHitTest(Point) IInputElement
Returns the topmost active input element at a point on an IInputElement.
IsLogicalParentOf(ILogical) bool
IsVisualAncestorOf(IVisual) bool
Tests whether an IVisual is an ancestor of another visual.
PointToClient(PixelPoint) Point
Converts a point from screen to client coordinates.
PointToScreen(Point) PixelPoint
Converts a point from client to screen coordinates.
TranslatePoint(Point, IVisual) Point
Translates a point relative to this visual to coordinates that are relative to the specified visual. The visual and relativeTo should be descendants of the same root window
TryFindResource(string, object) bool
Tries to the specified resource by searching up the logical tree and then global styles.