Class Shape
Implements abstract base class for all shapes
Inherited Members
Namespace: EmptyKeys.UserInterface.Shapes
Assembly: EmptyKeys.UserInterface.dll
Syntax
public abstract class Shape : UIElement
Constructors
Shape()
Initializes a new instance of the Shape class.
Declaration
public Shape()
Fields
FillProperty
The fill property
Declaration
public static readonly DependencyProperty FillProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
StretchProperty
The stretch property
Declaration
public static readonly DependencyProperty StretchProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
StrokeProperty
The stroke property
Declaration
public static readonly DependencyProperty StrokeProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
StrokeThicknessProperty
The stroke thickness property
Declaration
public static readonly DependencyProperty StrokeThicknessProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
DefiningGeometry
Gets the defining geometry.
Declaration
protected abstract Geometry DefiningGeometry { get; }
Property Value
Type | Description |
---|---|
Geometry | The defining geometry. |
Fill
Gets or sets the fill.
Declaration
public Brush Fill { get; set; }
Property Value
Type | Description |
---|---|
Brush | The fill. |
RenderedGeometry
Gets the rendered geometry.
Declaration
public virtual Geometry RenderedGeometry { get; }
Property Value
Type | Description |
---|---|
Geometry | The rendered geometry. |
Stretch
Gets or sets the stretch.
Declaration
public Stretch Stretch { get; set; }
Property Value
Type | Description |
---|---|
Stretch | The stretch. |
Stroke
Gets or sets the stroke.
Declaration
public Brush Stroke { get; set; }
Property Value
Type | Description |
---|---|
Brush | The stroke. |
StrokeThickness
Gets or sets the stroke thickness.
Declaration
public float StrokeThickness { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The stroke thickness. |
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
GeometryHitTest(PointF)
Geometries the hit test.
Declaration
protected virtual bool GeometryHitTest(PointF point)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.PointF | point | The point. |
Returns
Type | Description |
---|---|
System.Boolean |
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 renderer, double elapsedGameTime, float opacity)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Renderers.Renderer | renderer | The renderer. |
System.Double | elapsedGameTime | The elapsed game time. |
System.Single | opacity | The opacity. |