Click or drag to resize
DigitalRuneThemeImageBorder Property
Gets or sets the border that defines the 9-grid layout for image stretching.

Namespace: DigitalRune.Game.UI.Rendering
Assembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax
public Vector4F Border { get; set; }

Property Value

Type: Vector4F
The border that defines the 9-grid layout.
Remarks
When the alignment is set to Stretch, the image will be stretched to fill the control area. A typical 9-grid scaling is applied and the Border defines the left/right/top/bottom margins. The left-top, left-bottom, right-top and right-bottom parts of the image will not be stretched. The center-top and center-bottom parts will be stretched horizontally. The left-center and right-center parts will be stretched vertically. The center part will be stretched horizontally and vertically.
See Also