Skip to content
Version 2.11.0
↓ Get the launcher

WindowSpec.Anchor property

Anchor for the initial placement of DefaultRect on the (possibly scaled) window canvas. Defaults to TopLeft = legacy absolute top-left. Use Center etc. to center/corner-anchor without computing the UI scale yourself; DefaultRect.X/Y then act as a canvas-unit offset from the anchor. A user’s saved drag still overrides this.

public WindowAnchor Anchor { get; set; }