Skip to main content

SetAlignVerticalCenterWith Method

Sets the value of the RelativePanel.AlignVerticalCenterWith XAML attached property for a target element.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

[ResolveByNameAttribute]
public static void SetAlignVerticalCenterWith(
AvaloniaObject obj,
Object value
)

Parameters

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

See Also

Reference

RelativePanel Class
Avalonia.Controls Namespace