Skip to main content

Window Class

NuGet: GHIElectronics.TinyCLR.UI
Assembly: GHIElectronics.TinyCLR.UI
Namespace: GHIElectronics.TinyCLR.UI

Represents a top-level window that hosts content and is managed by the window manager.

public class Window : ContentControl

Properties​

Top​

public int Top { get; set; }

Position for Top of the host window

Left​

public int Left { get; set; }

Gets or sets the position of the left edge of the window.

Topmost​

public bool Topmost { get; set; }

Determines if this window is always on the top.

Methods​

Hide()​

public void Hide()

Hides the window without closing it, WPF-style. It stays alive and can be shown again with Show.

Activate()​

public void Activate()

Brings the window to the front of the z-order and gives it input focus, WPF-style.

Close()​

public void Close()

Closes the window and removes it from the application and window manager.

ArrangeOverride(int arrangeWidth, int arrangeHeight)​

protected override void ArrangeOverride(int arrangeWidth, int arrangeHeight)

ArrangeOverride allows for the customization of the positioning of children.