Skip to main content

ZIndex Property

Gets or sets the Z index of the control.

Definition​

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

public int ZIndex { get; set; }

Property Value​

Int32

Remarks​

Controls with a higher ZIndex will appear in front of controls with a lower ZIndex. If two controls have the same ZIndex then the control that appears later in the containing element's children collection will appear on top.

See Also​

Reference​

Visual Class
Avalonia Namespace