RelativePanel Class

Defines an area within which you can position and align child objects in relation to each other or the parent panel.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public class RelativePanel : Panel
Inheritance
Object    AvaloniaObject    Animatable    StyledElement    Visual    Layoutable    Interactive    InputElement    Control    Panel    RelativePanel

Constructors

RelativePanelInitializes a new instance of the RelativePanel class

Properties

ActualThemeVariant
(Inherited from StyledElement)
Background Gets or Sets Panel background brush.
(Inherited from Panel)
Bounds
(Inherited from Visual)
BypassFlowDirectionPolicies
(Inherited from Visual)
Children Gets the children of the Panel.
(Inherited from Panel)
Classes
(Inherited from StyledElement)
Clip
(Inherited from Visual)
ClipToBounds
(Inherited from Visual)
ContextFlyout Gets or sets a context flyout to the control
(Inherited from Control)
ContextMenu Gets or sets a context menu to the control.
(Inherited from Control)
Cursor
(Inherited from InputElement)
DataContext
(Inherited from StyledElement)
DataTemplates Gets or sets the data templates for the control.
(Inherited from Control)
DesiredSize
(Inherited from Layoutable)
Effect
(Inherited from Visual)
FlowDirection
(Inherited from Visual)
Focusable
(Inherited from InputElement)
FocusAdorner Gets or sets the control's focus adorner.
(Inherited from Control)
GestureRecognizers
(Inherited from InputElement)
HasMirrorTransform
(Inherited from Visual)
Height
(Inherited from Layoutable)
HorizontalAlignment
(Inherited from Layoutable)
InheritanceParent
(Inherited from AvaloniaObject)
IsArrangeValid
(Inherited from Layoutable)
IsEffectivelyEnabled
(Inherited from InputElement)
IsEffectivelyVisible
(Inherited from Visual)
IsEnabled
(Inherited from InputElement)
IsEnabledCore
(Inherited from InputElement)
IsFocused
(Inherited from InputElement)
IsHitTestVisible
(Inherited from InputElement)
IsInitialized
(Inherited from StyledElement)
IsItemsHost Gets whether the Panel hosts the items created by an ItemsPresenter.
(Inherited from Panel)
IsKeyboardFocusWithin
(Inherited from InputElement)
IsLoaded Gets a value indicating whether the control is fully constructed in the visual tree and both layout and render are complete.
(Inherited from Control)
IsMeasureValid
(Inherited from Layoutable)
IsPointerOver
(Inherited from InputElement)
IsTabStop
(Inherited from InputElement)
IsVisible
(Inherited from Visual)
Item
(Inherited from AvaloniaObject)
Item
(Inherited from AvaloniaObject)
KeyBindings
(Inherited from InputElement)
LogicalChildren
(Inherited from StyledElement)
Margin
(Inherited from Layoutable)
MaxHeight
(Inherited from Layoutable)
MaxWidth
(Inherited from Layoutable)
MinHeight
(Inherited from Layoutable)
MinWidth
(Inherited from Layoutable)
Name
(Inherited from StyledElement)
Opacity
(Inherited from Visual)
OpacityMask
(Inherited from Visual)
Parent
(Inherited from StyledElement)
PseudoClasses
(Inherited from StyledElement)
RenderTransform
(Inherited from Visual)
RenderTransformOrigin
(Inherited from Visual)
Resources
(Inherited from StyledElement)
StyleKey
(Inherited from StyledElement)
StyleKeyOverride
(Inherited from StyledElement)
Styles
(Inherited from StyledElement)
TabIndex
(Inherited from InputElement)
Tag Gets or sets a user-defined object attached to the control.
(Inherited from Control)
TemplatedParent
(Inherited from StyledElement)
Theme
(Inherited from StyledElement)
Transitions
(Inherited from Animatable)
UseLayoutRounding
(Inherited from Layoutable)
VerticalAlignment
(Inherited from Layoutable)
VisualChildren
(Inherited from Visual)
VisualRoot
(Inherited from Visual)
Width
(Inherited from Layoutable)
ZIndex
(Inherited from Visual)

Methods

AddHandler(RoutedEvent, Delegate, RoutingStrategies, Boolean)
(Inherited from Interactive)
AddHandler``1(RoutedEventUMP, EventHandlerUMP, RoutingStrategies, Boolean)
(Inherited from Interactive)
ApplyStyling
(Inherited from StyledElement)
ApplyTemplate
(Inherited from Layoutable)
Arrange(Rect)
(Inherited from Layoutable)
ArrangeCore(Rect)
(Inherited from Layoutable)
ArrangeOverride(Size)
(Overrides Layoutable.ArrangeOverride(Size))
BeginInit
(Inherited from StyledElement)
Bind(AvaloniaProperty, IBinding)
(Inherited from AvaloniaObject)
Bind(AvaloniaProperty, IObservableObject, BindingPriority)
(Inherited from AvaloniaObject)
Bind``1(DirectPropertyBaseUMP, IObservableUMP)
(Inherited from AvaloniaObject)
Bind``1(DirectPropertyBaseUMP, IObservableBindingValueUMP)
(Inherited from AvaloniaObject)
Bind``1(DirectPropertyBaseUMP, IObservableObject)
(Inherited from AvaloniaObject)
Bind``1(StyledPropertyUMP, IObservableUMP, BindingPriority)
(Inherited from AvaloniaObject)
Bind``1(StyledPropertyUMP, IObservableBindingValueUMP, BindingPriority)
(Inherited from AvaloniaObject)
Bind``1(StyledPropertyUMP, IObservableObject, BindingPriority)
(Inherited from AvaloniaObject)
BuildEventRoute(RoutedEvent)
(Inherited from Interactive)
CheckAccess
(Inherited from AvaloniaObject)
ChildrenChanged(Object, NotifyCollectionChangedEventArgs) Called when the Children collection changes.
(Inherited from Panel)
ClearValue(AvaloniaProperty)
(Inherited from AvaloniaObject)
ClearValue``1(AvaloniaPropertyUMP)
(Inherited from AvaloniaObject)
ClearValue``1(DirectPropertyBaseUMP)
(Inherited from AvaloniaObject)
ClearValue``1(StyledPropertyUMP)
(Inherited from AvaloniaObject)
CoerceValue(AvaloniaProperty)
(Inherited from AvaloniaObject)
EndInit
(Inherited from StyledElement)
Equals(Object)
(Inherited from AvaloniaObject)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Focus(NavigationMethod, KeyModifiers)
(Inherited from InputElement)
GetAbove(AvaloniaObject) Gets the value of the RelativePanel.Above XAML attached property for the target element.
GetAlignBottomWith(AvaloniaObject) Gets the value of the RelativePanel.AlignBottomWith XAML attached property for the target element.
GetAlignBottomWithPanel(AvaloniaObject) Gets the value of the RelativePanel.AlignBottomWithPanel XAML attached property for the target element.
GetAlignHorizontalCenterWith(AvaloniaObject) Gets the value of the RelativePanel.AlignHorizontalCenterWith XAML attached property for the target element.
GetAlignHorizontalCenterWithPanel(AvaloniaObject) Gets the value of the RelativePanel.AlignHorizontalCenterWithPanel XAML attached property for the target element.
GetAlignLeftWith(AvaloniaObject) Gets the value of the RelativePanel.AlignLeftWith XAML attached property for the target element.
GetAlignLeftWithPanel(AvaloniaObject) Gets the value of the RelativePanel.AlignLeftWithPanel XAML attached property for the target element.
GetAlignRightWith(AvaloniaObject) Gets the value of the RelativePanel.AlignRightWith XAML attached property for the target element.
GetAlignRightWithPanel(AvaloniaObject) Gets the value of the RelativePanel.AlignRightWithPanel XAML attached property for the target element.
GetAlignTopWith(AvaloniaObject) Gets the value of the RelativePanel.AlignTopWith XAML attached property for the target element.
GetAlignTopWithPanel(AvaloniaObject) Gets the value of the RelativePanel.AlignTopWithPanel XAML attached property for the target element.
GetAlignVerticalCenterWith(AvaloniaObject) Gets the value of the RelativePanel.AlignVerticalCenterWith XAML attached property for the target element.
GetAlignVerticalCenterWithPanel(AvaloniaObject) Gets the value of the RelativePanel.AlignVerticalCenterWithPanel XAML attached property for the target element.
GetBaseValue``1(StyledPropertyUMP)
(Inherited from AvaloniaObject)
GetBelow(AvaloniaObject) Gets the value of the RelativePanel.Below XAML attached property for the target element.
GetHashCode
(Inherited from AvaloniaObject)
GetLeftOf(AvaloniaObject) Gets the value of the RelativePanel.LeftOf XAML attached property for the target element.
GetRightOf(AvaloniaObject) Gets the value of the RelativePanel.RightOf XAML attached property for the target element.
GetTemplateFocusTarget Gets the element that receives the focus adorner.
(Inherited from Control)
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetValue(AvaloniaProperty)
(Inherited from AvaloniaObject)
GetValue``1(DirectPropertyBaseUMP)
(Inherited from AvaloniaObject)
GetValue``1(StyledPropertyUMP)
(Inherited from AvaloniaObject)
InitializeIfNeeded
(Inherited from StyledElement)
InvalidateArrange
(Inherited from Layoutable)
InvalidateMeasure
(Inherited from Layoutable)
InvalidateMirrorTransform
(Inherited from Visual)
InvalidateVisual
(Inherited from Visual)
IsAnimating(AvaloniaProperty)
(Inherited from AvaloniaObject)
IsSet(AvaloniaProperty)
(Inherited from AvaloniaObject)
LogicalChildrenCollectionChanged(Object, NotifyCollectionChangedEventArgs)
(Inherited from Visual)
Measure(Size)
(Inherited from Layoutable)
MeasureCore(Size)
(Inherited from Layoutable)
MeasureOverride(Size)
(Overrides Layoutable.MeasureOverride(Size))
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OnAccessKey(RoutedEventArgs)
(Inherited from InputElement)
OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs)
(Inherited from StyledElement)
OnAttachedToVisualTree(VisualTreeAttachmentEventArgs)
(Inherited from Visual)
OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs)
(Inherited from Control)
OnCreateAutomationPeer Returns a new, type-specific AutomationPeer implementation for the control.
(Inherited from Control)
OnDataContextBeginUpdate
(Inherited from StyledElement)
OnDataContextChanged(EventArgs)
(Inherited from StyledElement)
OnDataContextEndUpdate
(Inherited from StyledElement)
OnDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs)
(Inherited from StyledElement)
OnDetachedFromVisualTree(VisualTreeAttachmentEventArgs)
(Inherited from Visual)
OnDetachedFromVisualTreeCore(VisualTreeAttachmentEventArgs)
(Inherited from Control)
OnGotFocus(GotFocusEventArgs)
(Inherited from Control)
OnInitialized
(Inherited from StyledElement)
OnKeyDown(KeyEventArgs)
(Inherited from InputElement)
OnKeyUp(KeyEventArgs)
(Inherited from Control)
OnLoaded(RoutedEventArgs) Invoked just before the Loaded event.
(Inherited from Control)
OnLostFocus(RoutedEventArgs)
(Inherited from Control)
OnMeasureInvalidated
(Inherited from Layoutable)
OnPointerCaptureLost(PointerCaptureLostEventArgs)
(Inherited from InputElement)
OnPointerEntered(PointerEventArgs)
(Inherited from InputElement)
OnPointerExited(PointerEventArgs)
(Inherited from InputElement)
OnPointerMoved(PointerEventArgs)
(Inherited from InputElement)
OnPointerPressed(PointerPressedEventArgs)
(Inherited from InputElement)
OnPointerReleased(PointerReleasedEventArgs)
(Inherited from Control)
OnPointerWheelChanged(PointerWheelEventArgs)
(Inherited from InputElement)
OnPropertyChanged(AvaloniaPropertyChangedEventArgs)
(Inherited from Control)
OnPropertyChangedCore(AvaloniaPropertyChangedEventArgs)
(Inherited from Animatable)
OnSizeChanged(SizeChangedEventArgs) Invoked just before the SizeChanged event.
(Inherited from Control)
OnTextInput(TextInputEventArgs)
(Inherited from InputElement)
OnUnloaded(RoutedEventArgs) Invoked just before the Unloaded event.
(Inherited from Control)
OnVisualParentChanged(Visual, Visual)
(Inherited from Layoutable)
RaiseEvent(RoutedEventArgs)
(Inherited from Interactive)
RaisePropertyChanged``1(DirectPropertyBaseUMP, UMP, UMP)
(Inherited from AvaloniaObject)
RemoveHandler(RoutedEvent, Delegate)
(Inherited from Interactive)
RemoveHandler``1(RoutedEventUMP, EventHandlerUMP)
(Inherited from Interactive)
Render(DrawingContext) Renders the visual to a DrawingContext.
(Inherited from Panel)
SetAbove(AvaloniaObject, Object) Sets the value of the RelativePanel.Above XAML attached property for a target element.
SetAlignBottomWith(AvaloniaObject, Object) Sets the value of the RelativePanel.Above XAML attached property for a target element.
SetAlignBottomWithPanel(AvaloniaObject, Boolean) Sets the value of the RelativePanel.Above XAML attached property for a target element.
SetAlignHorizontalCenterWith(AvaloniaObject, Object) Sets the value of the RelativePanel.Above XAML attached property for a target element.
SetAlignHorizontalCenterWithPanel(AvaloniaObject, Boolean) Sets the value of the RelativePanel.Above XAML attached property for a target element.
SetAlignLeftWith(AvaloniaObject, Object) Sets the value of the RelativePanel.Above XAML attached property for a target element.
SetAlignLeftWithPanel(AvaloniaObject, Boolean) Sets the value of the RelativePanel.Above XAML attached property for a target element.
SetAlignRightWith(AvaloniaObject, Object) Sets the value of the RelativePanel.AlignRightWith XAML attached property for a target element.
SetAlignRightWithPanel(AvaloniaObject, Boolean) Sets the value of the RelativePanel.Above XAML attached property for a target element.
SetAlignTopWith(AvaloniaObject, Object) Sets the value of the RelativePanel.AlignTopWith XAML attached property for a target element.
SetAlignTopWithPanel(AvaloniaObject, Boolean) Sets the value of the RelativePanel.AlignTopWithPanel XAML attached property for a target element.
SetAlignVerticalCenterWith(AvaloniaObject, Object) Sets the value of the RelativePanel.AlignVerticalCenterWith XAML attached property for a target element.
SetAlignVerticalCenterWithPanel(AvaloniaObject, Boolean) Sets the value of the RelativePanel.AlignVerticalCenterWithPanel XAML attached property for a target element.
SetAndRaise``1(DirectPropertyBaseUMP, UMP, UMP)
(Inherited from AvaloniaObject)
SetBelow(AvaloniaObject, Object) Sets the value of the RelativePanel.Above XAML attached property for a target element.
SetCurrentValue(AvaloniaProperty, Object)
(Inherited from AvaloniaObject)
SetCurrentValue``1(StyledPropertyUMP, UMP)
(Inherited from AvaloniaObject)
SetLeftOf(AvaloniaObject, Object) Sets the value of the RelativePanel.LeftOf XAML attached property for a target element.
SetRightOf(AvaloniaObject, Object) Sets the value of the RelativePanel.RightOf XAML attached property for a target element.
SetValue(AvaloniaProperty, Object, BindingPriority)
(Inherited from AvaloniaObject)
SetValue``1(DirectPropertyBaseUMP, UMP)
(Inherited from AvaloniaObject)
SetValue``1(StyledPropertyUMP, UMP, BindingPriority)
(Inherited from AvaloniaObject)
ToStringReturns a string that represents the current object.
(Inherited from Object)
TryGetResource(Object, ThemeVariant, Object)
(Inherited from StyledElement)
UpdateDataValidation(AvaloniaProperty, BindingValueType, Exception)
(Inherited from AvaloniaObject)
UpdateIsEffectivelyEnabled
(Inherited from InputElement)
UpdateLayout
(Inherited from Layoutable)
VerifyAccess
(Inherited from AvaloniaObject)

Events

ActualThemeVariantChanged
(Inherited from StyledElement)
AttachedToLogicalTree
(Inherited from StyledElement)
AttachedToVisualTree
(Inherited from Visual)
ContextRequested Occurs when the user has completed a context input gesture, such as a right-click.
(Inherited from Control)
DataContextChanged
(Inherited from StyledElement)
DetachedFromLogicalTree
(Inherited from StyledElement)
DetachedFromVisualTree
(Inherited from Visual)
DoubleTapped
(Inherited from InputElement)
EffectiveViewportChanged
(Inherited from Layoutable)
GotFocus
(Inherited from InputElement)
Holding
(Inherited from InputElement)
Initialized
(Inherited from StyledElement)
KeyDown
(Inherited from InputElement)
KeyUp
(Inherited from InputElement)
LayoutUpdated
(Inherited from Layoutable)
Loaded Occurs when the control has been fully constructed in the visual tree and both layout and render are complete.
(Inherited from Control)
LostFocus
(Inherited from InputElement)
PointerCaptureLost
(Inherited from InputElement)
PointerEntered
(Inherited from InputElement)
PointerExited
(Inherited from InputElement)
PointerMoved
(Inherited from InputElement)
PointerPressed
(Inherited from InputElement)
PointerReleased
(Inherited from InputElement)
PointerWheelChanged
(Inherited from InputElement)
PropertyChanged
(Inherited from AvaloniaObject)
ResourcesChanged
(Inherited from StyledElement)
SizeChanged Occurs when the bounds (actual size) of the control have changed.
(Inherited from Control)
Tapped
(Inherited from InputElement)
TextInput
(Inherited from InputElement)
TextInputMethodClientRequested
(Inherited from InputElement)
Unloaded Occurs when the control is removed from the visual tree.
(Inherited from Control)

Fields

AboveProperty Identifies the AboveProperty XAML attached property.
AlignBottomWithPanelProperty Identifies the AlignBottomWithPanelProperty XAML attached property.
AlignBottomWithProperty Identifies the AlignBottomWithProperty XAML attached property.
AlignHorizontalCenterWithPanelProperty Identifies the AlignHorizontalCenterWithPanelProperty XAML attached property.
AlignHorizontalCenterWithProperty Identifies the AlignHorizontalCenterWithProperty XAML attached property.
AlignLeftWithPanelProperty Identifies the AlignLeftWithPanelProperty XAML attached property.
AlignLeftWithProperty Identifies the AlignLeftWithProperty XAML attached property.
AlignRightWithPanelProperty Identifies the AlignRightWithPanelProperty XAML attached property.
AlignRightWithProperty Identifies the AlignRightWithProperty XAML attached property.
AlignTopWithPanelProperty Identifies the AlignTopWithPanelProperty XAML attached property.
AlignTopWithProperty Identifies the AlignTopWithProperty XAML attached property.
AlignVerticalCenterWithPanelProperty Identifies the AlignVerticalCenterWithPanelProperty XAML attached property.
AlignVerticalCenterWithProperty Identifies the AlignVerticalCenterWithProperty XAML attached property.
BelowProperty Identifies the BelowProperty XAML attached property.
LeftOfProperty Identifies the LeftOfProperty XAML attached property.
RightOfProperty Identifies the RightOfProperty XAML attached property.

Extension Methods

BringIntoView Tries to bring the control into view.
(Defined by ControlExtensions)
BringIntoView(Rect) Tries to bring the control into view.
(Defined by ControlExtensions)
FindControlT(String) Finds the named control in the scope of the specified control.
(Defined by ControlExtensions)
FindDataTemplate(Object, IDataTemplate) Find a data template that matches a piece of data.
(Defined by DataTemplateExtensions)
GetControlT(String) Finds the named control in the scope of the specified control and throws if not found.
(Defined by ControlExtensions)

See Also