StackLayoutItem Conversion (Image to StackLayoutItem) |
Converts an
Image to a StackLayoutItem with an
ImageView control implicitly.
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public static implicit operator StackLayoutItem (
Image image
)
Public Shared Widening Operator CType (
image As Image
) As StackLayoutItem
F# does not support the declaration of new casting operators.
Parameters
- image
- Type: Eto.DrawingImage
Image to convert to a StackLayoutItem with a ImageView control.
Return Value
Type:
StackLayoutItem[Missing <returns> documentation for "M:Eto.Forms.StackLayoutItem.op_Implicit(Eto.Drawing.Image)~Eto.Forms.StackLayoutItem"]
Remarks
This provides an easy way to add images to your layout through code, without having to create
ImageView instances manually.
See Also