Table of Contents

Class WindowManager

Namespace
nanoFramework.Presentation
Assembly
nanoFramework.Graphics.dll

Provides a container for windows and manages rendering and focus.

public class WindowManager : Canvas
Inheritance
WindowManager
Inherited Members
Extension Methods

Fields

Instance

Gets or sets the WindowManager instance.

public static WindowManager Instance

Field Value

WindowManager

Methods

MeasureOverride(int, int, out int, out int)

Measures the child elements of the WindowManager.

protected override void MeasureOverride(int availableWidth, int availableHeight, out int desiredWidth, out int desiredHeight)

Parameters

availableWidth int

The available width.

availableHeight int

The available height.

desiredWidth int

The desired width.

desiredHeight int

The desired height.

OnChildrenChanged(UIElement, UIElement, int)

Called when a child element is added or removed from the WindowManager.

protected override void OnChildrenChanged(UIElement added, UIElement removed, int indexAffected)

Parameters

added UIElement

The child element that was added.

removed UIElement

The child element that was removed.

indexAffected int

The index of the child element that was affected.

RenderRecursive(DrawingContext)

Represents the method that handles post-rendering of the WindowManager.

protected override void RenderRecursive(DrawingContext dc)

Parameters

dc DrawingContext

The DrawingContext to use for post-rendering.

Events

PostRender

Occurs when post-rendering is performed on the WindowManager.

public event PostRenderEventHandler PostRender

Event Type

PostRenderEventHandler