Class Border
- Namespace
- nanoFramework.Presentation.Controls
- Assembly
- nanoFramework.Graphics.dll
Represents a WPF-like Border control that provides a border and background for its content.
public class Border : ContentControl
- Inheritance
-
Border
- Inherited Members
- Extension Methods
Constructors
Border()
Initializes a new instance of the Border class.
public Border()
Properties
BorderBrush
Gets or sets the Brush used to draw the border of the Border control.
public Brush BorderBrush { get; set; }
Property Value
Methods
ArrangeOverride(int, int)
Arranges the content of the Border control.
protected override void ArrangeOverride(int arrangeWidth, int arrangeHeight)
Parameters
arrangeWidth
intThe width of the layout slot for the control.
arrangeHeight
intThe height of the layout slot for the control.
GetBorderThickness(out int, out int, out int, out int)
Gets the thickness of the border of the Border control.
public void GetBorderThickness(out int left, out int top, out int right, out int bottom)
Parameters
left
intReceives the thickness of the left border.
top
intReceives the thickness of the top border.
right
intReceives the thickness of the right border.
bottom
intReceives the thickness of the bottom border.
MeasureOverride(int, int, out int, out int)
protected override void MeasureOverride(int availableWidth, int availableHeight, out int desiredWidth, out int desiredHeight)
Parameters
OnRender(DrawingContext)
Draws the content of the Border control.
public override void OnRender(DrawingContext dc)
Parameters
dc
DrawingContextThe DrawingContext.
SetBorderThickness(int)
Sets the thickness of the border of the Border control.
public void SetBorderThickness(int length)
Parameters
length
intThe thickness of all four borders.
SetBorderThickness(int, int, int, int)
Sets the thickness of the border of the Border control.
public void SetBorderThickness(int left, int top, int right, int bottom)