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
_font
The Font used to render the control.
protected Font _font
Field Value
_foreground
The Brush used to paint the foreground of the control.
protected Brush _foreground
Field Value
Properties
Background
Gets or sets the Brush that fills the background of the control.
public Brush Background { get; set; }
Property Value
Font
Gets or sets the Font of the control.
public Font Font { get; set; }
Property Value
Foreground
Gets or sets the Brush that is used to paint the foreground of the control.
public Brush Foreground { get; set; }
Property Value
Methods
OnRender(DrawingContext)
Called when the control is redrawn.
public override void OnRender(DrawingContext dc)
Parameters
dc
DrawingContextThe DrawingContext used to render the control.