RelativePanel.

SetAlignHorizontalCenterWith(AvaloniaObject, object) Method

Summary

Sets the value of the RelativePanel.Above XAML attached property for a target element.
Namespace
Avalonia.Controls
Containing Type
RelativePanel

Syntax

[ResolveByName]
public static void SetAlignHorizontalCenterWith(AvaloniaObject obj, object value)

Attributes

Type Description
ResolveByNameAttribute Indicates that the property resolves an element by Name or x:Name. When applying this to attached properties, ensure to put on both the Getter and Setter methods.

Parameters

Name Type Description
obj AvaloniaObject The object to which the property value is written.
value object The value to set. (The element to align this element's horizontal center with.)

Return Value

Type Description
void