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
availableWidth
intThe available width.
availableHeight
intThe available height.
desiredWidth
intThe desired width.
desiredHeight
intThe 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
UIElementThe child element that was added.
removed
UIElementThe child element that was removed.
indexAffected
intThe 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
DrawingContextThe DrawingContext to use for post-rendering.
Events
PostRender
Occurs when post-rendering is performed on the WindowManager.
public event PostRenderEventHandler PostRender