Table of Contents

Method CenterOnParent

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

CenterOnParent(GenericOrientation)

Centers the window.

public override bool CenterOnParent(GenericOrientation direction = GenericOrientation.Both)

Parameters

direction GenericOrientation

Specifies the direction for the centering.

Returns

bool

Remarks

If the window is a top level one (i.e. doesn't have a parent), it will be centered relative to the screen anyhow.