Class Image
Image control UI
Inherited Members
Namespace: EmptyKeys.UserInterface.Controls
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class Image : UIElement
Constructors
Image()
Initializes a new instance of the Image class.
Declaration
public Image()
Fields
SourceProperty
The source property
Declaration
public static readonly DependencyProperty SourceProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
StretchProperty
The stretch property
Declaration
public static readonly DependencyProperty StretchProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
Source
Gets or sets the source.
Declaration
public BitmapImage Source { get; set; }
Property Value
Type | Description |
---|---|
BitmapImage | The source. |
Stretch
Gets or sets the stretch.
Declaration
public Stretch Stretch { get; set; }
Property Value
Type | Description |
---|---|
Stretch | The stretch. |
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
CalculateSize(Size, Stretch)
Calculates the size of the image
Declaration
protected Size CalculateSize(Size availableSize, Stretch stretch)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Size | availableSize | Size of the available. |
Stretch | stretch | The stretch. |
Returns
Type | Description |
---|---|
EmptyKeys.UserInterface.Size |
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. |