Table of Contents

Class Control

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

Represents a base class for all WPF controls.

public class Control : UIElement
Inheritance
Control
Derived
Inherited Members
Extension Methods

Constructors

Control()

public Control()

Fields

_background

The Brush used to fill the background of the control.

protected Brush _background

Field Value

Brush

_font

The Font used to render the control.

protected Font _font

Field Value

Font

_foreground

The Brush used to paint the foreground of the control.

protected Brush _foreground

Field Value

Brush

Properties

Background

Gets or sets the Brush that fills the background of the control.

public Brush Background { get; set; }

Property Value

Brush

Font

Gets or sets the Font of the control.

public Font Font { get; set; }

Property Value

Font

Foreground

Gets or sets the Brush that is used to paint the foreground of the control.

public Brush Foreground { get; set; }

Property Value

Brush

Methods

OnRender(DrawingContext)

Called when the control is redrawn.

public override void OnRender(DrawingContext dc)

Parameters

dc DrawingContext

The DrawingContext used to render the control.