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
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
availableWidthintThe available width.
availableHeightintThe available height.
desiredWidthintThe desired width.
desiredHeightintThe 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
addedUIElementThe child element that was added.
removedUIElementThe child element that was removed.
indexAffectedintThe 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
dcDrawingContextThe DrawingContext to use for post-rendering.
Events
PostRender
Occurs when post-rendering is performed on the WindowManager.
public event PostRenderEventHandler PostRender