Table of Contents

Class ContentControl

Namespace
nanoFramework.Presentation.Controls
Assembly
nanoFramework.Graphics.dll

Represents a base class for a control that can contain a single child element.

public abstract class ContentControl : Control
Inheritance
ContentControl
Derived
Inherited Members
Extension Methods

Constructors

ContentControl()

protected ContentControl()

Properties

Child

Gets or sets the child element of the ContentControl.

public UIElement Child { get; set; }

Property Value

UIElement

Methods

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

Measures the size required for the child element of the ContentControl.

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

Parameters

availableWidth int

The available width that a parent element can allocate to a child element.

availableHeight int

The available height that a parent element can allocate to a child element.

desiredWidth int

The width required for the child element based on the available space.

desiredHeight int

The height required for the child element based on the available space.