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
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
intThe available width that a parent element can allocate to a child element.
availableHeight
intThe available height that a parent element can allocate to a child element.
desiredWidth
intThe width required for the child element based on the available space.
desiredHeight
intThe height required for the child element based on the available space.