Class Border
Implements control for drawing border or background
Inherited Members
Namespace: EmptyKeys.UserInterface.Controls
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class Border : Control
Constructors
Border()
Initializes a new instance of the Border class.
Declaration
public Border()
Fields
ChildProperty
The child property
Declaration
public static readonly DependencyProperty ChildProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
Child
Gets or sets the content.
Declaration
public UIElement Child { get; set; }
Property Value
Type | Description |
---|---|
UIElement | The content. |
Methods
ArrangeOverride(Size)
Arrange layout pass - overrider method for children
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Size | finalSize | The final size. |
Returns
Type | Description |
---|---|
EmptyKeys.UserInterface.Size |
Overrides
InvalidateIsEnabledOnChildren()
Invalidates the IsEnabled property value on children.
Declaration
protected override void InvalidateIsEnabledOnChildren()
Overrides
MeasureOverride(Size)
Measure layout pass
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Size | availableSize | available size for element |
Returns
Type | Description |
---|---|
EmptyKeys.UserInterface.Size |
Overrides
OnDraw(Renderer, Double, Single)
Called when [draw].
Declaration
protected override void OnDraw(Renderer spriterenderer, double elapsedGameTime, float opacity)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Renderers.Renderer | spriterenderer | The sprite renderer. |
System.Double | elapsedGameTime | The elapsed game time. |
System.Single | opacity | The opacity. |