IPanel Interface

Summary

Interface for controls that can contain multiple children.
graph TD Interface0["IControl"]-.->Type click Interface0 "/api/Avalonia.Controls/IControl" Interface1["IDataTemplateHost"]-.->Type click Interface1 "/api/Avalonia.Controls.Templates/IDataTemplateHost" Interface2["ILayoutable"]-.->Type click Interface2 "/api/Avalonia.Layout/ILayoutable" Interface3["IInputElement"]-.->Type click Interface3 "/api/Avalonia.Input/IInputElement" Interface4["IInteractive"]-.->Type click Interface4 "/api/Avalonia.Interactivity/IInteractive" Interface5["IVisual"]-.->Type click Interface5 "/api/Avalonia.VisualTree/IVisual" Interface6["IStyledElement"]-.->Type click Interface6 "/api/Avalonia/IStyledElement" Interface7["IStyleable"]-.->Type click Interface7 "/api/Avalonia.Styling/IStyleable" Interface8["IAvaloniaObject"]-.->Type click Interface8 "/api/Avalonia/IAvaloniaObject" Interface9["INamed"]-.->Type click Interface9 "/api/Avalonia/INamed" 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" Type["IPanel"] class Type type-node Type-.->Implementing0["Panel"] click Implementing0 "/api/Avalonia.Controls/Panel" Type-.->Implementing1["DataGridCellsPresenter"] click Implementing1 "/api/Avalonia.Controls.Primitives/DataGridCellsPresenter" Type-.->Implementing2["DataGridRowsPresenter"] click Implementing2 "/api/Avalonia.Controls.Primitives/DataGridRowsPresenter" Type-.->Implementing3["Canvas"] click Implementing3 "/api/Avalonia.Controls/Canvas" Type-.->Implementing4["SimpleGrid"] click Implementing4 "/api/Avalonia.Diagnostics.Views/SimpleGrid" Type-.->Implementing5["DataGridDetailsPresenter"] click Implementing5 "/api/Avalonia.Controls.Primitives/DataGridDetailsPresenter" Type-.->Implementing6["Grid"] click Implementing6 "/api/Avalonia.Controls/Grid" Type-.->Implementing7["DockPanel"] click Implementing7 "/api/Avalonia.Controls/DockPanel" Type-.->Implementing8["VirtualizingStackPanel"] click Implementing8 "/api/Avalonia.Controls/VirtualizingStackPanel" Type-.->Implementing9["WrapPanel"] click Implementing9 "/api/Avalonia.Controls/WrapPanel" Type-.->Implementing10["StackPanel"] click Implementing10 "/api/Avalonia.Controls/StackPanel" Type-.->Implementing11["UniformGrid"] click Implementing11 "/api/Avalonia.Controls.Primitives/UniformGrid" Type-.->Implementing12["AdornerLayer"] click Implementing12 "/api/Avalonia.Controls.Primitives/AdornerLayer" Type-.->Implementing13["IVirtualizingPanel"] click Implementing13 "/api/Avalonia.Controls/IVirtualizingPanel" Type-.->Implementing14["DataGridFrozenGrid"] click Implementing14 "/api/Avalonia.Controls.Primitives/DataGridFrozenGrid" Type-.->Implementing15["DataGridColumnHeadersPresenter"] click Implementing15 "/api/Avalonia.Controls.Primitives/DataGridColumnHeadersPresenter"

Syntax

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

Properties

Name Value Summary
Children Controls
Gets the children of the Panel.

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.