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)
- C#
- VB
- F#
public static void SetAlignVerticalCenterWithPanel(
AvaloniaObject obj,
bool value
)
Public Shared Sub SetAlignVerticalCenterWithPanel (
obj As AvaloniaObject,
value As Boolean
)
static member SetAlignVerticalCenterWithPanel :
obj : AvaloniaObject *
value : bool -> unit
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.)