Skip to main content

SetAlignVerticalCenterWithPanel Method

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

Definition

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

public static void SetAlignVerticalCenterWithPanel(
AvaloniaObject obj,
bool value
)

Parameters

  AvaloniaObject
The object to which the property value is written.
  Boolean
The value to set. (true to vertically center this element in the panel; otherwise, false.)

See Also

Reference

RelativePanel Class
Avalonia.Controls Namespace