Method CenterOnParent
CenterOnParent(GenericOrientation)
Centers the window.
public virtual void CenterOnParent(GenericOrientation direction)
Parameters
direction
GenericOrientationSpecifies the direction for the centering.
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.